diff options
author | Michael Trier <mtrier@gmail.com> | 2008-12-16 19:44:49 -0500 |
---|---|---|
committer | Michael Trier <mtrier@gmail.com> | 2008-12-16 20:53:04 -0500 |
commit | e4582f805156095604fe07e71195cd9aa43d7a34 (patch) | |
tree | 78eb4778aed234c96affc2d8eeaf8f935499bc86 /test/git/test_commit.py | |
parent | 79cfe05054de8a31758eb3de74532ed422c8da27 (diff) | |
download | gitpython-e4582f805156095604fe07e71195cd9aa43d7a34.tar.gz |
fixed Commit.stats retrieval for parentless commits in bare repos
(cherry picked from commit 88852ed7bcde4f4b18c1ae8b6fba7f3fab8e9bf5)
Diffstat (limited to 'test/git/test_commit.py')
-rw-r--r-- | test/git/test_commit.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/git/test_commit.py b/test/git/test_commit.py index da7236c8..4af13d80 100644 --- a/test/git/test_commit.py +++ b/test/git/test_commit.py @@ -129,7 +129,7 @@ class TestCommit(object): assert_equal(True, diffs[5].new_file) assert_true(git.called) - assert_equal(git.call_args, (('diff', '-M', + assert_equal(git.call_args, (('diff', '-M', '038af8c329ef7c1bae4568b98bd5c58510465493', '91169e1f5fa4de2eaea3f176461f5dc784796769', ), {'full_index': True})) @@ -190,7 +190,7 @@ class TestCommit(object): @patch_object(Git, '_call_process') def test_stats(self, git): - git.return_value = fixture('diff_numstat') + git.return_value = fixture('diff_tree_numstat_root') commit = Commit(self.repo, id='634396b2f541a9f2d58b00be1a07f0c358b999b3') commit.__bake_it__() @@ -201,7 +201,7 @@ class TestCommit(object): assert_equal(["a.txt", "b.txt"], keys) assert_true(git.called) - assert_equal(git.call_args, (('diff', '634396b2f541a9f2d58b00be1a07f0c358b999b3', '--'), {'numstat': True})) + assert_equal(git.call_args, (('diff_tree', '634396b2f541a9f2d58b00be1a07f0c358b999b3', '--'), {'numstat': True, 'root': True })) @patch_object(Git, '_call_process') def test_rev_list_bisect_all(self, git): |