aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-06-11 15:20:44 +0200
committerGuido Günther <agx@sigxcpu.org>2013-06-11 15:27:02 +0200
commit4d6eecb73e34d9751a05c3908b4ad3f8960619ad (patch)
tree6c6b1582a3dc73d45452910aa1fcc8877fd02058 /tests
parenta30f9e772cb8b4c48cca296bb3a7690c3e8ae418 (diff)
GitRepository.get_subject: use get_commit_info
This kills another _git_getoutput. Also deprecate the method since we don't need to special case the subject.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_GitRepository.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py
index be522c97..0e8d8d0d 100644
--- a/tests/test_GitRepository.py
+++ b/tests/test_GitRepository.py
@@ -446,6 +446,8 @@ def test_get_commit_info():
'foo'
>>> info['files']
defaultdict(<type 'list'>, {'M': ['testfile']})
+ >>> repo.get_subject('HEAD')
+ 'foo'
"""
def test_diff():