diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-03-04 16:06:23 +0100 |
---|---|---|
committer | Taler Developers <devs@taler.net> | 2016-03-04 16:06:23 +0100 |
commit | 78b362a3b92b504530e0870735a27cd1d8039417 (patch) | |
tree | b85ad284695f242c7159efebf7a6a3fe28b7d338 /githooks/merchant/post-receive | |
parent | 9e4b1920d72bb53e2cf9b7941c7fc6db4c30de38 (diff) | |
download | deployment-78b362a3b92b504530e0870735a27cd1d8039417.tar.gz deployment-78b362a3b92b504530e0870735a27cd1d8039417.tar.bz2 deployment-78b362a3b92b504530e0870735a27cd1d8039417.zip |
add post-update hook
Diffstat (limited to 'githooks/merchant/post-receive')
-rwxr-xr-x | githooks/merchant/post-receive | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/githooks/merchant/post-receive b/githooks/merchant/post-receive index 77a817d..dac4c53 100755 --- a/githooks/merchant/post-receive +++ b/githooks/merchant/post-receive @@ -1,24 +1,3 @@ -#!/usr/bin/python3 - -import sys -import os - -lines = sys.stdin.readlines() - -updated = set() - -for line in lines: - try: - old, new, name = line.split() - except ValueError: - print("unexpected format") - os.exit(1) - updated.add(name) - -if "refs/heads/test" in updated: - ret = os.system("echo merchant | timeout 1s tee /home/test/rebuild >/dev/null") - if ret != 0: - print("merchant update failed") - else: - print("updating merchant") +#!/bin/sh +exec git update-server-info |