From 0fb1cbd7802b0629f5a99ff4ee4616132f08d31d Mon Sep 17 00:00:00 2001 From: Ignacio BurgueƱo Date: Fri, 11 May 2012 17:16:50 -0300 Subject: Simplify --branch --- src/luarocks/fetch/git.lua | 3 +-- 1 file changed, 1 insertion(+), 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) local tag_or_branch = rockspec.source.tag or rockspec.source.branch if tag_or_branch then -- ensure the branch (or tag) is available - table.insert(command, 4, "--branch") - table.insert(command, 5, tag_or_branch) + table.insert(command, 4, "--branch=" .. tag_or_branch) checkout_command = {git_cmd, "checkout", tag_or_branch} end local store_dir -- cgit v1.2.3-55-g6feb