summaryrefslogtreecommitdiffstats
path: root/src/syrep.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/syrep.c')
-rw-r--r--src/syrep.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/syrep.c b/src/syrep.c
index 17e6427..266082f 100644
--- a/src/syrep.c
+++ b/src/syrep.c
@@ -100,7 +100,7 @@ static int do_diff(void) {
if (!(ddb = make_diff(c1, c2)))
goto finish;
- if (list_diff(c1, c2, ddb) < 0)
+ if (list_diff(c1, c2, ddb, isdirectory(args.inputs[0]) > 0 ? args.inputs[0] : NULL, isdirectory(args.inputs[1]) > 0 ? args.inputs[1] : NULL) < 0)
goto finish;
r = 0;
@@ -230,7 +230,6 @@ static int do_makepatch(void) {
if (makepatch(c1, c2, args.inputs[0]) < 0)
goto finish;
-
if (!args.output_file_given && isatty(fileno(stdout)))
fprintf(stderr, "Sorry, I am not going to write the patch data to a tty.\n");
else if (db_context_save(c1, args.output_file_given ? args.output_file_arg : NULL) < 0)