diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-06-12 14:17:50 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-06-12 14:17:50 +0100 |
commit | eac4e0a09e5bf9622ded95f1ad03514e99507f18 (patch) | |
tree | 44154a5963e243147d41d6f41ffb022fd1422812 | |
parent | 7e5707782c370f8b0232bc9fb60032a15f664fc5 (diff) | |
download | gitano-eac4e0a09e5bf9622ded95f1ad03514e99507f18.tar.gz |
GIT.OBJECT: Use 'cat-file tag SHA' for tags, in an attempt to appease a bug tickled by systemd
-rw-r--r-- | lib/gitano/git/object.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitano/git/object.lua b/lib/gitano/git/object.lua index a6c32a8..0778bdc 100644 --- a/lib/gitano/git/object.lua +++ b/lib/gitano/git/object.lua @@ -20,7 +20,7 @@ local function _objectindex(obj, field) elseif field == "size" then ok, ret = repos[obj]:gather("cat-file", "-s", obj.sha) elseif field == "raw" then - ok, ret = repos[obj]:rawgather("cat-file", "-p", obj.sha) + ok, ret = repos[obj]:rawgather("cat-file", (obj.type == "tag" and "tag" or "-p"), obj.sha) elseif field == "content" then if obj.type == "blob" then ok, ret = 0, obj.raw |