We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae74611 commit 6c1d502Copy full SHA for 6c1d502
script/cibuild-gh-ost-replica-tests
@@ -7,7 +7,8 @@ whoami
7
# Clone gh-ost-ci-env
8
# Only clone if not already running locally at latest commit
9
remote_commit=$(git ls-remote https://github.com/github/gh-ost-ci-env.git HEAD | cut -f1)
10
-local_commit=$(cd gh-ost-ci-env && git log --format="%H" -n 1)
+local_commit="unknown"
11
+[ -d "gh-ost-ci-env" ] && local_commit=$(cd gh-ost-ci-env && git log --format="%H" -n 1)
12
13
echo "remote commit is $remote_commit"
14
echo "local commit is $local_commit"
0 commit comments