diff options
Diffstat (limited to 'src/patch.c')
-rw-r--r-- | src/patch.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/patch.c b/src/patch.c index 0bce8fb..0b0fdd4 100644 --- a/src/patch.c +++ b/src/patch.c @@ -196,8 +196,12 @@ main (int argc, char **argv) if (have_git_diff != pch_git_diff ()) { + if (have_git_diff) + { + output_files (NULL); + inerrno = -1; + } have_git_diff = ! have_git_diff; - output_files (NULL); } if (TMPREJNAME_needs_removal) |