From 3bc5aeb935917f36d752ac7b2d03cb40ae15be4a Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 12 Jul 2012 02:01:34 -0300 Subject: Missing local (thanks lua-inspect!) --- src/luarocks/fetch/git.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/luarocks/fetch/git.lua b/src/luarocks/fetch/git.lua index d643d25d..e7c89435 100644 --- a/src/luarocks/fetch/git.lua +++ b/src/luarocks/fetch/git.lua @@ -15,7 +15,7 @@ local function git_can_clone_by_tag() local version_string = io.popen('git --version'):read() local major, minor, tiny = version_string:match('(%d-)%.(%d+)%.?(%d*)') major, minor, tiny = tonumber(major), tonumber(minor), tonumber(tiny) or 0 - value = major > 1 or (major == 1 and (minor > 7 or (minor == 7 and tiny >= 10))) + local value = major > 1 or (major == 1 and (minor > 7 or (minor == 7 and tiny >= 10))) git_can_clone_by_tag = function() return value end return git_can_clone_by_tag() end -- cgit v1.2.3-55-g6feb