This commit is contained in:
Tim Vaillancourt 2021-05-07 22:38:25 +02:00 committed by GitHub
parent 90a14d58bd
commit afa221bb45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ whoami
fetch_ci_env() { fetch_ci_env() {
# 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 tar-xz-binaries | cut -f1) remote_commit=$(git ls-remote https://github.com/github/gh-ost-ci-env.git HEAD | cut -f1)
local_commit="unknown" local_commit="unknown"
[ -d "gh-ost-ci-env" ] && local_commit=$(cd gh-ost-ci-env && git log --format="%H" -n 1) [ -d "gh-ost-ci-env" ] && local_commit=$(cd gh-ost-ci-env && git log --format="%H" -n 1)