pull/2/head
Rui Carmo 2016-04-03 17:43:19 +01:00
rodzic 8393139e0e
commit 9a78b6b179
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -616,7 +616,7 @@ def receive(app):
with open(hook_path,'w') as h:
h.write("""#!/usr/bin/env bash
set -e; set -o pipefail;
cat | PIKU_ROOT="%s" %s git-hook %s""" % (PIKU_ROOT, realpath(__file__) app))
cat | PIKU_ROOT="%s" %s git-hook %s""" % (PIKU_ROOT, realpath(__file__), app))
# Make the hook executable by our user
os.chmod(hook_path, os.stat(hook_path).st_mode | stat.S_IXUSR)
# Handle the actual receive. We'll be called with 'git-hook' after it happens