Skip to content

Commit 45c8d3f

Browse files
authored
Merge pull request libgit2#5295 from romkatv/fix-diff-res
fix a bug introduced in 8a23597
2 parents bf2911d + 1886478 commit 45c8d3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diff_generate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ int git_diff_tree_to_index(
13711371
if ((error = diff_prepare_iterator_opts(&prefix, &a_opts, iflag, &b_opts, iflag, opts)) < 0 ||
13721372
(error = git_iterator_for_tree(&a, old_tree, &a_opts)) < 0 ||
13731373
(error = git_iterator_for_index(&b, repo, index, &b_opts)) < 0 ||
1374-
(error = git_diff__from_iterators(&diff, repo, a, b, opts) < 0))
1374+
(error = git_diff__from_iterators(&diff, repo, a, b, opts)) < 0)
13751375
goto out;
13761376

13771377
/* if index is in case-insensitive order, re-sort deltas to match */

0 commit comments

Comments
 (0)