diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2012-06-18 16:20:39 +0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-06-30 09:35:03 +0200 |
commit | 1e8597804ff33ec7e826e77b94fd371d4be9ef29 (patch) | |
tree | 81af7335957ac2bab2339b316ffbe54ee2760cb7 /tests/test_GitRepository.py | |
parent | 41482a3b5cd36ac7b1fd53079f2a05e5b4fbc99e (diff) |
GitRepository: make get_commit_info() more robust
Now uses git-show instead of git-log. This is needed for further
enhancements (namely to get name-status for merge commits). Also, use
null-character as the field separator which makes parsing more reliable.
The method now returns 'body' of the commit message as is, without
stripping or splitting to lines.
In addition, get_commit_info() now uses GitArgs and _git_inout() instead
of the deprecated _git_getoutput().
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests/test_GitRepository.py')
-rw-r--r-- | tests/test_GitRepository.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py index 8461904..78c38b4 100644 --- a/tests/test_GitRepository.py +++ b/tests/test_GitRepository.py @@ -354,7 +354,7 @@ def test_get_commit_info(): >>> info['id'] 'HEAD' >>> info['body'] - [''] + '' >>> info['subject'] 'foo' >>> '@' in info['email'] |