summaryrefslogtreecommitdiff
path: root/githooks/merchant
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-04-26 03:32:20 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-04-26 03:32:20 +0200
commit3f9a1368eca8e27405dff961098c6ab22959e1b3 (patch)
treea459d66cbd4750250b1fbab632ecadfb8b2785f1 /githooks/merchant
parent4d890da3a4fc280033579d0f4dd9e87189ac1977 (diff)
downloaddeployment-3f9a1368eca8e27405dff961098c6ab22959e1b3.tar.gz
deployment-3f9a1368eca8e27405dff961098c6ab22959e1b3.tar.bz2
deployment-3f9a1368eca8e27405dff961098c6ab22959e1b3.zip
githooks aren't needed anymore
Diffstat (limited to 'githooks/merchant')
-rwxr-xr-xgithooks/merchant/post-receive26
-rwxr-xr-xgithooks/merchant/post-update8
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