@@ -129,7 +129,7 @@ def test_diffs(self, git):
129129 assert_equal (True , diffs [5 ].new_file )
130130
131131 assert_true (git .called )
132- assert_equal (git .call_args , (('diff' , '-M' ,
132+ assert_equal (git .call_args , (('diff' , '-M' ,
133133 '038af8c329ef7c1bae4568b98bd5c58510465493' ,
134134 '91169e1f5fa4de2eaea3f176461f5dc784796769' ,
135135 ), {'full_index' : True }))
@@ -190,7 +190,7 @@ def test_diffs_with_mode_only_change(self, git):
190190
191191 @patch_object (Git , '_call_process' )
192192 def test_stats (self , git ):
193- git .return_value = fixture ('diff_numstat ' )
193+ git .return_value = fixture ('diff_tree_numstat_root ' )
194194
195195 commit = Commit (self .repo , id = '634396b2f541a9f2d58b00be1a07f0c358b999b3' )
196196 commit .__bake_it__ ()
@@ -201,7 +201,7 @@ def test_stats(self, git):
201201 assert_equal (["a.txt" , "b.txt" ], keys )
202202
203203 assert_true (git .called )
204- assert_equal (git .call_args , (('diff ' , '634396b2f541a9f2d58b00be1a07f0c358b999b3' , '--' ), {'numstat' : True }))
204+ assert_equal (git .call_args , (('diff_tree ' , '634396b2f541a9f2d58b00be1a07f0c358b999b3' , '--' ), {'numstat' : True , 'root' : True }))
205205
206206 @patch_object (Git , '_call_process' )
207207 def test_rev_list_bisect_all (self , git ):
0 commit comments