diff options
-rw-r--r-- | bin/gitano-update-hook.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/gitano-update-hook.in b/bin/gitano-update-hook.in index ca579ca..85d1c76 100644 --- a/bin/gitano-update-hook.in +++ b/bin/gitano-update-hook.in @@ -133,7 +133,7 @@ local function do_expensive_populate_context(context) oldtree = repo.git:get(gall.tree.empty_sha).content else local thing = repo.git:get(oldsha) - if thing.type == "tag" then + while thing.type == "tag" do thing = thing.content.object end if thing.type == "commit" then @@ -148,7 +148,7 @@ local function do_expensive_populate_context(context) newtree = repo.git:get(gall.tree.empty_sha).content else local thing = repo.git:get(newsha) - if thing.type == "tag" then + while thing.type == "tag" do thing = thing.content.object end if thing.type == "commit" then |