aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgnacio Burgueño <ignaciob@inconcertcc.com>2012-05-11 17:16:50 -0300
committerIgnacio Burgueño <ignaciob@inconcertcc.com>2012-05-11 17:16:50 -0300
commit0fb1cbd7802b0629f5a99ff4ee4616132f08d31d (patch)
tree163b4259fb254a020b884ec22c8aae4b92f24df7
parent838c54621041ddd2ab905729dc25a9aca2284238 (diff)
downloadluarocks-0fb1cbd7802b0629f5a99ff4ee4616132f08d31d.tar.gz
luarocks-0fb1cbd7802b0629f5a99ff4ee4616132f08d31d.tar.bz2
luarocks-0fb1cbd7802b0629f5a99ff4ee4616132f08d31d.zip
Simplify --branch
-rw-r--r--src/luarocks/fetch/git.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/luarocks/fetch/git.lua b/src/luarocks/fetch/git.lua
index 0b33e76b..b7df6372 100644
--- a/src/luarocks/fetch/git.lua
+++ b/src/luarocks/fetch/git.lua
@@ -27,8 +27,7 @@ function get_sources(rockspec, extract, dest_dir)
27 local tag_or_branch = rockspec.source.tag or rockspec.source.branch 27 local tag_or_branch = rockspec.source.tag or rockspec.source.branch
28 if tag_or_branch then 28 if tag_or_branch then
29 -- ensure the branch (or tag) is available 29 -- ensure the branch (or tag) is available
30 table.insert(command, 4, "--branch") 30 table.insert(command, 4, "--branch=" .. tag_or_branch)
31 table.insert(command, 5, tag_or_branch)
32 checkout_command = {git_cmd, "checkout", tag_or_branch} 31 checkout_command = {git_cmd, "checkout", tag_or_branch}
33 end 32 end
34 local store_dir 33 local store_dir