commit 8f5bfa4f042fd9b471a4e870d69a9abde6d10b2e parent 08342a68e2827891cf067c61f9bc879d1c67f67d Author: Florian Dold <florian.dold@gmail.com> Date: Fri, 4 Mar 2016 15:06:46 +0100 githook Diffstat:
| A | githooks/merchant/post-receive | | | 17 | +++++++++++++++++ |
1 file changed, 17 insertions(+), 0 deletions(-)
diff --git a/githooks/merchant/post-receive b/githooks/merchant/post-receive @@ -0,0 +1,17 @@ +#!/usr/bin/python3 + +import sys +import os + +lines = sys.stdin.readlines() + +updated = {} + +for line in lines: + old, new, name = line.split() + updated.add(name) + +if "refs/heads/test" in updated: + os.system("echo merchant | timeout 1s tee rebuild") + print("updating merchant") +