Skip to content

Commit ee8749c

Browse files
committed
CI: Checkout the specific apx revision determined by git ls-remote
to avoid a race condition.
1 parent 1460709 commit ee8749c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/travis_before_linux.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,12 @@ function install_apx() {
5050
return 0
5151
fi
5252

53-
git clone -q --depth=1 --branch=$version ${giturl} ${build}
53+
git init -q ${build}
5454
pushd $build
55+
# Clone and checkout the commit identified above.
56+
git remote add origin ${giturl}
57+
git fetch -q --depth=1 ${commit}
58+
git checkout ${commit}
5559
./buildconf ${buildconf}
5660
./configure --prefix=${prefix} ${config}
5761
make -j2

0 commit comments

Comments
 (0)