diff options
Diffstat (limited to 'tests')
-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() |