summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2016-04-24 09:20:39 +0200
committerSebastian Thiel <byronimo@gmail.com>2016-04-24 09:20:39 +0200
commit3c673ff2d267b927d2f70765da4dc3543323cc7a (patch)
tree795a1db5a74a1c67c5878a3a08c0e6bb398d03bc
parent819c4ed8b443baee06472680f8d36022cb9c3240 (diff)
downloadgitpython-3c673ff2d267b927d2f70765da4dc3543323cc7a.tar.gz
Travis should now be able to test tags
It's just a guess, maybe we are lucky. The original problem is that travis checks out tags without branches, and thus checking out master does only work if travis runs on master. With tags, it will only heckout and locally know the tag in question. The changes should allow it to retry and create the master branch instead.
-rw-r--r--.travis.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 131bcef7..5c01b3fd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,7 +16,7 @@ install:
# generate some reflog as git-python tests need it (in master)
- git tag __testing_point__
- - git checkout master
+ - git checkout master || git checkout -b master
- git reset --hard HEAD~1
- git reset --hard HEAD~1
- git reset --hard HEAD~1