diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-11-05 07:45:11 +0100 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-11-05 07:48:05 +0100 |
commit | 1886478d571729a5624b07cc6b547a7fe6f34a14 (patch) | |
tree | a7666e850f6b4cf037f71f773c8fb6123a1a94ef /src/diff_generate.c | |
parent | bf2911d7d0e4fd0f8a76d5de658af0929fa32ca8 (diff) | |
download | libgit2-1886478d571729a5624b07cc6b547a7fe6f34a14.tar.gz |
fix a bug introduced in 8a23597b
Diffstat (limited to 'src/diff_generate.c')
-rw-r--r-- | src/diff_generate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff_generate.c b/src/diff_generate.c index b68efb6ea..7ec24d50d 100644 --- a/src/diff_generate.c +++ b/src/diff_generate.c @@ -1371,7 +1371,7 @@ int git_diff_tree_to_index( if ((error = diff_prepare_iterator_opts(&prefix, &a_opts, iflag, &b_opts, iflag, opts)) < 0 || (error = git_iterator_for_tree(&a, old_tree, &a_opts)) < 0 || (error = git_iterator_for_index(&b, repo, index, &b_opts)) < 0 || - (error = git_diff__from_iterators(&diff, repo, a, b, opts) < 0)) + (error = git_diff__from_iterators(&diff, repo, a, b, opts)) < 0) goto out; /* if index is in case-insensitive order, re-sort deltas to match */ |