summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-05-04 14:13:31 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-05-04 14:13:31 +0100
commit12db146d98bdf0cecf9935308a0753a290fc13f8 (patch)
treec82019c7ab5d2f61a3d3c4f544b91200315f1b07 /bin
parentcccdf6f5c8d5a08cde059d1c67cadce871198309 (diff)
downloadgitano-12db146d98bdf0cecf9935308a0753a290fc13f8.tar.gz
BIN: Fix tree acquisition in gitano-update-hook
Diffstat (limited to 'bin')
-rw-r--r--bin/gitano-update-hook4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/gitano-update-hook b/bin/gitano-update-hook
index 7801961..f314bba 100644
--- a/bin/gitano-update-hook
+++ b/bin/gitano-update-hook
@@ -106,12 +106,12 @@ end
local oldtree, newtree
if oldsha == nullsha then
- oldtree = repo.git:get(gitano.git.tree.empty_sha)
+ oldtree = repo.git:get(gitano.git.tree.empty_sha).content.tree.content
else
oldtree = repo.git:get(oldsha).content.tree.content
end
if newsha == nullsha then
- newtree = repo.git:get(gitano.git.tree.empty_sha)
+ newtree = repo.git:get(gitano.git.tree.empty_sha).content.tree.content
else
newtree = repo.git:get(newsha).content.tree.content
end