This project is archived and is in readonly mode.
add branch/tag option for 'script plugin/install' with git
Reported by David Chelimsky | May 26th, 2008 @ 11:36 PM
Being able to install plugins from git is a great start, but it would be even nicer if it supported a couple of options like --tag so i could do this:
script/plugin install git://github.com/dchelimsky/rspec.git --tag 1.1.4
Comments and changes to this ticket
-
qoobaa June 10th, 2008 @ 02:03 AM
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 June 10th, 2008 @ 02:11 AM
./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 June 10th, 2008 @ 02:15 AM
- 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 July 12th, 2008 @ 06:01 PM
- Tag changed from enhancement, patch, tested to enhancement, patch, plugins, tested
+1 (although plugins should be replaced by gems anyway).
-
Les Hill July 13th, 2008 @ 02:27 PM
- Assigned user set to Pratik
- Tag changed from enhancement, patch, plugins, tested to enhancement, patch, tested
-
Tim Pope July 14th, 2008 @ 02:54 AM
+1, though the "git_command" abstraction doesn't really serve any purpose
-
Tim Pope July 14th, 2008 @ 03:32 AM
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 July 14th, 2008 @ 03:52 AM
- 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
-
Aditya Sanghi October 24th, 2010 @ 02:42 PM
- Title changed from Add magic encoding comment to generated files to add branch/tag option for 'script plugin/install' with git
- Assigned user cleared.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 591 Installing plugin from git branches Same as ticket #257 please close