We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5480646 commit 813f99fCopy full SHA for 813f99f
1 file changed
script/cibuild-gh-ost-replica-tests
@@ -4,8 +4,14 @@ set -e
4
5
whoami
6
7
-rm -rf ./gh-ost-ci-env
8
-[ -d "gh-ost-ci-env" ] || git clone https://github.com/github/gh-ost-ci-env.git
+# Clone gh-ost-ci-env
+# 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)
11
+if [ "$remote_commit" != "$local_commit" ] ; then
12
+ rm -rf ./gh-ost-ci-env
13
+ git clone https://github.com/github/gh-ost-ci-env.git
14
+fi
15
16
test_mysql_version() {
17
local mysql_version
0 commit comments