1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore(travis): fix jenkins branch deploy error on deploy-gitstats job

Error was caused by qTox repo already being cloned by the
`deploy-gitstats` job.
This commit is contained in:
Zetok Zalbavar 2017-02-05 14:38:37 +00:00
parent d320b1f259
commit 5e694492b9
No known key found for this signature in database
GPG Key ID: C953D3880212068A

View File

@ -24,7 +24,12 @@
set -eu -o pipefail
main() {
git clone https://github.com/qTox/qTox.git qTox
# can already be cloned by the `build-gitstats` job
if [[ ! -e qTox ]]
then
git clone https://github.com/qTox/qTox.git qTox
fi
cd qTox
git checkout $(git describe --abbrev=0) -b for-jenkins-release
git push --force "https://${GH_DEPLOY_JENKINS}@github.com/qTox/qTox.git"