From cc7cc8f8f1b6f3771d6d885744edf23bb99a0914 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 16 Dec 2014 17:57:19 +0100 Subject: Make sure to use a absolute link ( since GIT_DIR =., it fail ) --- roles/local_deploy/files/post-receive.private.sh | 2 +- roles/local_deploy/files/post-receive.public.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/local_deploy/files/post-receive.private.sh b/roles/local_deploy/files/post-receive.private.sh index 527c520..8d416ca 100644 --- a/roles/local_deploy/files/post-receive.private.sh +++ b/roles/local_deploy/files/post-receive.private.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo /usr/local/bin/extract_wrapper.sh +sudo /usr/local/bin/extract_wrapper.sh $(readlink -e $GIT_DIR) diff --git a/roles/local_deploy/files/post-receive.public.sh b/roles/local_deploy/files/post-receive.public.sh index adcfa80..04d2830 100644 --- a/roles/local_deploy/files/post-receive.public.sh +++ b/roles/local_deploy/files/post-receive.public.sh @@ -1,5 +1,5 @@ #!/bin/sh -sudo /usr/local/bin/extract_wrapper.sh $GIT_DIR +sudo /usr/local/bin/extract_wrapper.sh $(readlink -e $GIT_DIR) #GIT_WORK_TREE=/etc/ansible/ git checkout -q -f # run ansible sudo /usr/local/bin/ansible_run.sh -- cgit