fetch the correct branch. Oh and removing travis
This commit is contained in:
parent
919647cbbc
commit
3528d67550
@ -6,7 +6,7 @@ whoami
|
|||||||
|
|
||||||
# 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 HEAD | cut -f1)
|
remote_commit=$(git ls-remote https://github.com/github/gh-ost-ci-env.git real-tar-gz | 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)
|
||||||
|
|
||||||
@ -16,6 +16,7 @@ echo "local commit is: $local_commit"
|
|||||||
if [ "$remote_commit" != "$local_commit" ] ; then
|
if [ "$remote_commit" != "$local_commit" ] ; then
|
||||||
rm -rf ./gh-ost-ci-env
|
rm -rf ./gh-ost-ci-env
|
||||||
git clone https://github.com/github/gh-ost-ci-env.git
|
git clone https://github.com/github/gh-ost-ci-env.git
|
||||||
|
git fetch origin real-tar-gz
|
||||||
git checkout real-tar-gz
|
git checkout real-tar-gz
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user