diff options
author | José Valim <jose.valim@plataformatec.com.br> | 2012-05-17 23:15:20 +0200 |
---|---|---|
committer | José Valim <jose.valim@plataformatec.com.br> | 2012-05-17 23:15:20 +0200 |
commit | ca60146c179ee491bd0a03ef6b1f97bb74cb6427 (patch) | |
tree | f293baae5e3e9bdfd7339f6f0d5f31ac10c96efc /man/bundle-config.ronn | |
parent | 2b4df232f8785bc64f11d6902f109cdc400f0d6c (diff) | |
download | bundler-ca60146c179ee491bd0a03ef6b1f97bb74cb6427.tar.gz |
Add a section about LOCAL GIT REPOS to bundle config man pages
Diffstat (limited to 'man/bundle-config.ronn')
-rw-r--r-- | man/bundle-config.ronn | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/man/bundle-config.ronn b/man/bundle-config.ronn index fc00b4ea..dc07b69c 100644 --- a/man/bundle-config.ronn +++ b/man/bundle-config.ronn @@ -96,3 +96,31 @@ You can set them globally either via environment variables or `bundle config`, whichever is preferable for your setup. If you use both, environment variables will take preference over global settings. +## LOCAL GIT REPOS + +Bundler also allows you to work against a git repository locally +instead of using the remote version. This can be achieved by setting +up a local override: + + bundle config local.rack ~/path/to/local/rack + +Now, instead of checking out the remote git repository, the local +override will be used. Similar to a path source, every time the local +git repository change, changes will be automatically picked up by +Bundler. This means a commit in the local git repo will update the +revision in the `Gemfile.lock` to the local git repo revision. This +requires the same attention as git submodules. Before pushing to +remote, you need to ensure the local override was pushed, otherwise +you may point to a commit that only exists in your local machine. + +Bundler does many checks to ensure a developer won't work with +invalid references. Particularly, we force a developer to specify +a branch in the `Gemfile` in order to use this feature. If the branch +specified in the `Gemfile` and the current branch in the local git +repository do not match, Bundler will abort. This ensures that +a developer is always working against the correct branches, avoiding +a reference to be accidentally updated. + +Finally, Bundler also ensures that the current revision in the +`Gemfile.lock` exists in the local git repository. By doing this, Bundler +forces you to fetch the latest changes in the remotes.
\ No newline at end of file |