Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit a6aba14911739abb1b3f0c10f38393d7432df1b8 1 parent a9e62cb
@benmills authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 vim-bundle
View
10 vim-bundle
@@ -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.
Something went wrong with that request. Please try again.