aboutsummaryrefslogtreecommitdiffhomepage
path: root/files/clever-wait-deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'files/clever-wait-deploy.sh')
-rwxr-xr-x[-rw-r--r--]files/clever-wait-deploy.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/files/clever-wait-deploy.sh b/files/clever-wait-deploy.sh
index c955f6a..e0bbcf1 100644..100755
--- a/files/clever-wait-deploy.sh
+++ b/files/clever-wait-deploy.sh
@@ -47,4 +47,10 @@ function check {
47 deployed "$commit" 47 deployed "$commit"
48} 48}
49 49
50check "$(git rev-parse HEAD)" 50function getHeadRev {
51 local chdir="$1/.git"
52
53 git --git-dir="$chdir" rev-parse HEAD
54}
55
56check "$(getHeadRev "$@")"