diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2016-09-24 11:19:43 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2016-09-24 11:19:43 +0100 |
commit | 8cd5b8c5cfd02cd6d0911a0336af91d367e447fa (patch) | |
tree | 4fde3b7968a91006f720b981bae5e891d4e5141d | |
parent | f1bafe736175a1636bcdb6c03d6821abb44e7597 (diff) | |
download | gitano-8cd5b8c5cfd02cd6d0911a0336af91d367e447fa.tar.gz |
LACE: Provide new/old object data (incl. type and sign state) to lace
-rw-r--r-- | bin/gitano-update-hook.in | 3 | ||||
-rw-r--r-- | lib/gitano/lace.lua | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/bin/gitano-update-hook.in b/bin/gitano-update-hook.in index 102fa36..846dd7e 100644 --- a/bin/gitano-update-hook.in +++ b/bin/gitano-update-hook.in @@ -268,6 +268,9 @@ local function populate(sha, pfx) context[pfx.."taggedsha"] = obj.sha end end + if obj.content and obj.content.signature and obj.content.signature ~= "" then + context[pfx.."signed"] = "yes" + end end end end diff --git a/lib/gitano/lace.lua b/lib/gitano/lace.lua index 953327e..ee6b6e8 100644 --- a/lib/gitano/lace.lua +++ b/lib/gitano/lace.lua @@ -180,6 +180,9 @@ local simples = { "targetuser", "targetgroup", "member", "targetgroup/prefix", "targetgroup/suffix", "member/prefix", "member/suffix", + -- Stuff from update hooks for object types + "oldtype", "oldtaggedtype", "oldtaggedsha", "oldsigned", + "newtype", "newtaggedtype", "newtaggedsha", "newsigned", } local matchers = {} |