diff options
author | Guido Günther <agx@sigxcpu.org> | 2012-07-03 21:49:05 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-07-03 21:51:08 +0200 |
commit | d3ee4b0cb3fdbf06aac954eeb50715c74705b9b7 (patch) | |
tree | a8c055cd55c1cc345ac349cc2a39fd130333f64c /tests/test_GitRepository.py | |
parent | 4d56ab643100776171a66bff9686ff7f676ad1c5 (diff) | |
download | git-buildpackage-d3ee4b0cb3fdbf06aac954eeb50715c74705b9b7.tar.gz git-buildpackage-d3ee4b0cb3fdbf06aac954eeb50715c74705b9b7.tar.bz2 git-buildpackage-d3ee4b0cb3fdbf06aac954eeb50715c74705b9b7.zip |
GitRepository: Make rev_parse's short option an int everywhere
Diffstat (limited to 'tests/test_GitRepository.py')
-rw-r--r-- | tests/test_GitRepository.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py index 27dc291e..244070ce 100644 --- a/tests/test_GitRepository.py +++ b/tests/test_GitRepository.py @@ -561,7 +561,12 @@ def test_checkout(): Traceback (most recent call last): ... GitRepositoryError: revision 'doesnotexist' not found + >>> sha1 = repo.rev_parse('master', short=10) + >>> len(sha1) + 10 >>> sha1 = repo.rev_parse('master') + >>> len(sha1) + 40 >>> repo.checkout(sha1) >>> repo.branch >>> repo.get_branch() |