diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-04 10:24:10 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-04 10:24:10 +0100 |
commit | e3e8ce69bec72277354eff252064a59f515d718a (patch) | |
tree | a78cd697953859c3074bbe51490a768450ebccb8 | |
parent | 17f245cad19bf77a5a5fecdee6a41217cc128a73 (diff) | |
download | gitpython-e3e8ce69bec72277354eff252064a59f515d718a.tar.gz |
Somemore debugging for rev-parse issue
-rw-r--r-- | .travis.yml | 8 | ||||
-rw-r--r-- | git/test/test_repo.py | 8 |
2 files changed, 7 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml index cd3cf1cd..3d560bb6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,9 +13,9 @@ install: - pip install coveralls # for now we have to make sure there is a master branch - at some point we should just have it by default - - git branch master 0.3 + - git branch master - # generate some reflog as git-python tests need it + # generate some reflog as git-python tests need it (in 0.3) - git reset --hard HEAD~1 - git reset --hard HEAD~1 - git reset --hard HEAD~1 @@ -30,10 +30,6 @@ install: # as commits are performed with the default user, it needs to be set for travis too - git config --global user.email "travis@ci.com" - git config --global user.name "Travis Runner" - - # debugging - - find .git/logs - - cat .git/logs/HEAD script: - nosetests -v --with-coverage after_success: diff --git a/git/test/test_repo.py b/git/test/test_repo.py index 328995a2..64525ed1 100644 --- a/git/test/test_repo.py +++ b/git/test/test_repo.py @@ -581,15 +581,17 @@ class TestRepo(TestBase): assert rev_parse(refspec + ":CHANGES").type == 'blob' # END operate on non-detached head - # the last position - assert rev_parse('@{1}') != head.commit - # position doesn't exist self.failUnlessRaises(IndexError, rev_parse, '@{10000}') # currently, nothing more is supported self.failUnlessRaises(NotImplementedError, rev_parse, "@{1 week ago}") + # the last position + # For some reason, this test fails on travis - lets gather more information + print self.rorepo + assert rev_parse('@{1}') != head.commit + def test_repo_odbtype(self): target_type = GitDB if sys.version_info[1] < 5: |