From 4483bb9cdc1031a85a3a1fc1ea186a7390c807ba Mon Sep 17 00:00:00 2001 From: Paul Bonaud Date: Fri, 30 Nov 2018 16:53:40 +0100 Subject: fix(deploy): Yet again a missing chdir to execute from app root --- files/clever-wait-deploy.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'files') diff --git a/files/clever-wait-deploy.sh b/files/clever-wait-deploy.sh index e0bbcf1..b911069 100755 --- a/files/clever-wait-deploy.sh +++ b/files/clever-wait-deploy.sh @@ -48,9 +48,7 @@ function check { } function getHeadRev { - local chdir="$1/.git" - - git --git-dir="$chdir" rev-parse HEAD + git rev-parse HEAD } -check "$(getHeadRev "$@")" +check "$(getHeadRev)" -- cgit v1.2.3