From f0eb7d195ddb73eb292cfb62ae9f25f328392808 Mon Sep 17 00:00:00 2001 From: Ignacio BurgueƱo Date: Fri, 11 May 2012 16:21:53 -0300 Subject: Ensures that branches are properly fetched if needed --- src/luarocks/fetch/git.lua | 2 ++ 1 file changed, 2 insertions(+) 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) local checkout_command local tag_or_branch = rockspec.source.tag or rockspec.source.branch if tag_or_branch then + -- ensure the branch is available + table.insert(command, 4, "--no-single-branch") checkout_command = {git_cmd, "checkout", tag_or_branch} end local store_dir -- cgit v1.2.3-55-g6feb