diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-04-26 03:32:20 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-04-26 03:32:20 +0200 |
commit | 3f9a1368eca8e27405dff961098c6ab22959e1b3 (patch) | |
tree | a459d66cbd4750250b1fbab632ecadfb8b2785f1 /githooks | |
parent | 4d890da3a4fc280033579d0f4dd9e87189ac1977 (diff) | |
download | deployment-3f9a1368eca8e27405dff961098c6ab22959e1b3.tar.gz deployment-3f9a1368eca8e27405dff961098c6ab22959e1b3.tar.bz2 deployment-3f9a1368eca8e27405dff961098c6ab22959e1b3.zip |
githooks aren't needed anymore
Diffstat (limited to 'githooks')
-rwxr-xr-x | githooks/merchant/post-receive | 26 | ||||
-rwxr-xr-x | githooks/merchant/post-update | 8 |
2 files changed, 0 insertions, 34 deletions
diff --git a/githooks/merchant/post-receive b/githooks/merchant/post-receive deleted file mode 100755 index 001cfa7..0000000 --- a/githooks/merchant/post-receive +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/python3 - -import sys -import os - -lines = sys.stdin.readlines() - -print("executing merchant post-receive hook") - -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") - diff --git a/githooks/merchant/post-update b/githooks/merchant/post-update deleted file mode 100755 index ec17ec1..0000000 --- a/githooks/merchant/post-update +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -# -# An example hook script to prepare a packed repository for use over -# dumb transports. -# -# To enable this hook, rename this file to "post-update". - -exec git update-server-info |