summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2013-11-05 20:13:55 +0000
committerRichard Maw <richard.maw@gmail.com>2013-11-05 20:13:55 +0000
commitb249e5de5119f25e872f5af4f93a810271339bbf (patch)
tree099f6164f16670d2232d4158f5fc856e3de6a15e
parent13a96bfd7342d01745a8f298d91d2486d0031512 (diff)
downloadtar-clone-b249e5de5119f25e872f5af4f93a810271339bbf.tar.bz2
Remove the need for the extra option
-rwxr-xr-xtarjoin.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/tarjoin.lua b/tarjoin.lua
index 82c0c12..f89ad26 100755
--- a/tarjoin.lua
+++ b/tarjoin.lua
@@ -1,5 +1,5 @@
#!/usr/bin/lua
-local basedir, repo, localname = ...
+local repo, localname = ...
local luxio = require "luxio"
local sio = require "luxio.simple"
@@ -149,16 +149,16 @@ local writer = archive.write{
end
end,
}
-add_dir(writer, basedir, repo)
+add_dir(writer, repo, '.')
-HEAD = run_git(basedir..'/'..repo, "git", "rev-parse",
+HEAD = run_git(repo, "git", "rev-parse",
"--abbrev-ref", "HEAD"):sub(1, -2)
write_file(writer, localname..'/.git/HEAD',
'ref: refs/heads/'..HEAD..'\n')
config = get_config('git://git@gitserver/repo', HEAD)
write_file(writer, localname..'/.git/config', config)
-for branch, sha1 in run_git(basedir..'/'..repo, 'git', 'for-each-ref',
+for branch, sha1 in run_git(repo, 'git', 'for-each-ref',
'--format', '%(refname)%00%(objectname)%00',
'refs/heads')
:gmatch"refs/heads/([^%z]+)%z([^%z]+)%z\n" do