diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2016-05-30 13:47:52 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2016-05-30 13:47:52 +0100 |
commit | 705bd90caf11f97943374a14fa898a82f3ca52a9 (patch) | |
tree | df027c7eae877721e87ed779f93568d1702a2462 | |
parent | 750f5cfacef71c6bd0ed3acb7ef09355ed4aa6b2 (diff) | |
download | gitano-705bd90caf11f97943374a14fa898a82f3ca52a9.tar.gz |
Support tags pointing at tags in the update hook
-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 |