diff options
-rw-r--r-- | src/luarocks/fetch/git.lua | 3 |
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 |