Cleaning up TODOs

pull/2/head
Rui Carmo 2016-04-03 17:42:52 +01:00
rodzic 02bd0f58b1
commit 8393139e0e
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" $HOME/piku.py git-hook %s""" % (PIKU_ROOT, app)) # TODO: remove hardcoded script name
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