Permalink
Browse files

Add optional 3rd argument to specify a git branch for the vim plugin

  • Loading branch information...
1 parent a9e62cb commit a6aba14911739abb1b3f0c10f38393d7432df1b8 @benmills committed Jan 10, 2012
Showing with 8 additions and 2 deletions.
  1. +8 −2 vim-bundle
View
@@ -24,12 +24,18 @@ elsif ARGV.size > 1
split = ARGV[1].split("/")
+ if ARGV[2]
+ branch = ARGV[2]
+ else
+ branch = "master"
+ end
+
if split.size > 1
plugin_name = split[1]
- download_url = "https://github.com/#{ARGV[1]}/tarball/master"
+ download_url = "https://github.com/#{ARGV[1]}/tarball/#{branch}"
else
plugin_name = ARGV[1]
- download_url = "https://github.com/vim-scripts/#{ARGV[1]}/tarball/master"
+ download_url = "https://github.com/vim-scripts/#{ARGV[1]}/tarball/#{branch}"
end
plugin_path = bundle_path + "/" + plugin_name

0 comments on commit a6aba14

Please sign in to comment.