summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2013-11-06 22:55:06 +0000
committerRichard Maw <richard.maw@gmail.com>2013-11-06 22:55:06 +0000
commitba61e4d81d6113a19a62726619713bb491e21a56 (patch)
treeb07ae1f8036d5b9882216cb412ef4259913531f2
parent8adc9cb0b220b25692c1bce1733a7383fef062fd (diff)
downloadtar-clone-ba61e4d81d6113a19a62726619713bb491e21a56.tar.bz2
Convert some variables to local
-rwxr-xr-xtar-clone.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tar-clone.lua b/tar-clone.lua
index 9bd1687..a5fc692 100755
--- a/tar-clone.lua
+++ b/tar-clone.lua
@@ -129,9 +129,9 @@ local function write_file(writer, path, data)
end
local function run_git(dir, ...)
- proc = sp.spawn_simple{cwd=dir, stdout=sp.PIPE, ...}
- output = proc.stdout:read("*a")
- how, why = proc:wait()
+ local proc = sp.spawn_simple{cwd=dir, stdout=sp.PIPE, ...}
+ local output = proc.stdout:read("*a")
+ local how, why = proc:wait()
if how == -1 then
error("run_git failed: "..tostring(why))
end