This project is archived and is in readonly mode.
add branch/tag option for 'script plugin/install' with git
-
qoobaa
This patch uses old --revision (-r) argument to specify revision of plugin when installing from git. We can specify revision by adding:
- branch name e.g. 'experimental' (or full 'refs/heads/experimental')
- tag name e.g. 'tag 1.8.0' (or full 'refs/tags/1.8.0')
It uses git pull instead of git clone (see in git-pull(1) for more details).
-
qoobaa
For clarity example above:
-
qoobaa
./script/plugin install --revision 'tag 1.1.4' git://github.com/dchelimsky/rspec.git
P.S. Sorry for another comment, I can't edit previous.
-
qoobaa
- Title changed from add branch option for 'script plugin/install' with git to add branch/tag option for 'script plugin/install' with git
-
Clemens Kofler
- Tag changed from enhancement, patch, tested to enhancement, patch, plugins, tested
+1 (although plugins should be replaced by gems anyway).
-
Les Hill
- Assigned user set to Pratik
- Tag changed from enhancement, patch, plugins, tested to enhancement, patch, tested
-
Tim Pope
+1, though the "git_command" abstraction doesn't really serve any purpose
-
Tim Pope
Here's an ever so slightly altered version of Jakub's patch that cleans up the archaic git_command indirection and also avoids leaving an empty directory behind on failure.
-
Repository
- State changed from new to resolved
(from [5c086070824bf7dd2bc4c9ce97956d82ac3fa206]) Make script/plugin install -r option work with git based plugins. [#257 state:resolved]
Signed-off-by: Pratik Naik
-
Jeff Kreeftmeijer
Automatic cleanup of spam.
-
Aditya Sanghi
- Title changed from Add magic encoding comment to generated files to add branch/tag option for 'script plugin/install' with git
- Assigned user cleared.
