From 3f9a1368eca8e27405dff961098c6ab22959e1b3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 26 Apr 2016 03:32:20 +0200 Subject: githooks aren't needed anymore --- githooks/merchant/post-receive | 26 -------------------------- githooks/merchant/post-update | 8 -------- 2 files changed, 34 deletions(-) delete mode 100755 githooks/merchant/post-receive delete mode 100755 githooks/merchant/post-update (limited to 'githooks') 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 -- cgit v1.2.3