diff options
author | Paul Bonaud <paul.bonaud@fretlink.com> | 2018-11-05 14:02:21 +0100 |
---|---|---|
committer | Paul Bonaud <paul.bonaud@fretlink.com> | 2018-11-05 14:25:01 +0100 |
commit | f2c39e5b3ee29fc50954a47fd4df35e7ad66d657 (patch) | |
tree | 518064a1decf740a0894b6702c5a6b076ab80d9e /files | |
parent | 4ea7d2664061e806ca99b66af4b97f6e9d68f846 (diff) | |
download | ansible-clever-f2c39e5b3ee29fc50954a47fd4df35e7ad66d657.tar.gz ansible-clever-f2c39e5b3ee29fc50954a47fd4df35e7ad66d657.tar.zst ansible-clever-f2c39e5b3ee29fc50954a47fd4df35e7ad66d657.zip |
fix: 😬 really fix the usage of "clever_app_root" when waiting deploy
Followup after the fix of #15 it was still missing another case of
"git" usage.
This should be the last fix about this variable 🤞.
Diffstat (limited to 'files')
-rwxr-xr-x[-rw-r--r--] | files/clever-wait-deploy.sh | 8 |
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 | ||
50 | check "$(git rev-parse HEAD)" | 50 | function getHeadRev { |
51 | local chdir="$1/.git" | ||
52 | |||
53 | git --git-dir="$chdir" rev-parse HEAD | ||
54 | } | ||
55 | |||
56 | check "$(getHeadRev "$@")" | ||