sanity
This commit is contained in:
parent
ae746112b1
commit
6c1d502516
@ -7,7 +7,8 @@ whoami
|
|||||||
# Clone gh-ost-ci-env
|
# Clone gh-ost-ci-env
|
||||||
# Only clone if not already running locally at latest commit
|
# Only clone if not already running locally at latest commit
|
||||||
remote_commit=$(git ls-remote https://github.com/github/gh-ost-ci-env.git HEAD | cut -f1)
|
remote_commit=$(git ls-remote https://github.com/github/gh-ost-ci-env.git HEAD | cut -f1)
|
||||||
local_commit=$(cd gh-ost-ci-env && git log --format="%H" -n 1)
|
local_commit="unknown"
|
||||||
|
[ -d "gh-ost-ci-env" ] && local_commit=$(cd gh-ost-ci-env && git log --format="%H" -n 1)
|
||||||
|
|
||||||
echo "remote commit is $remote_commit"
|
echo "remote commit is $remote_commit"
|
||||||
echo "local commit is $local_commit"
|
echo "local commit is $local_commit"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user