diff options
-rw-r--r-- | src/luarocks/fetch/git.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/luarocks/fetch/git.lua b/src/luarocks/fetch/git.lua index 7db74c26..c7cc7008 100644 --- a/src/luarocks/fetch/git.lua +++ b/src/luarocks/fetch/git.lua | |||
@@ -26,6 +26,8 @@ function get_sources(rockspec, extract, dest_dir) | |||
26 | local checkout_command | 26 | local checkout_command |
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 is available | ||
30 | table.insert(command, 4, "--no-single-branch") | ||
29 | checkout_command = {git_cmd, "checkout", tag_or_branch} | 31 | checkout_command = {git_cmd, "checkout", tag_or_branch} |
30 | end | 32 | end |
31 | local store_dir | 33 | local store_dir |