Skip to content

Commit 6c1d502

Browse files
author
Shlomi Noach
committed
sanity
1 parent ae74611 commit 6c1d502

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/cibuild-gh-ost-replica-tests

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ whoami
77
# Clone gh-ost-ci-env
88
# Only clone if not already running locally at latest commit
99
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)
10+
local_commit="unknown"
11+
[ -d "gh-ost-ci-env" ] && local_commit=$(cd gh-ost-ci-env && git log --format="%H" -n 1)
1112

1213
echo "remote commit is $remote_commit"
1314
echo "local commit is $local_commit"

0 commit comments

Comments
 (0)