Code

[PATCH] Fix git-merge-cache -q
authorPetr Baudis <pasky@ucw.cz>
Thu, 4 Aug 2005 22:31:12 +0000 (00:31 +0200)
committerJunio C Hamano <junkio@cox.net>
Fri, 5 Aug 2005 20:53:17 +0000 (13:53 -0700)
I'm totally stupid and got it backwards, sorry about that.
git-merge-cache -q would mean it's noisy and quiet without any
parameters.

Signed-off-by: Petr Baudis <pasky@ucw.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
merge-cache.c

index b2893e6e2d524542fa375d409a36623cb2f5478d..744681b24fc9a3690b5d10f50b62d5887b8ed7f3 100644 (file)
@@ -30,7 +30,7 @@ static void run_program(void)
                if (one_shot) {
                        err++;
                } else {
-                       if (quiet)
+                       if (!quiet)
                                die("merge program failed");
                        exit(1);
                }
@@ -129,7 +129,7 @@ int main(int argc, char **argv)
                }
                merge_file(arg);
        }
-       if (err && quiet)
+       if (err && !quiet)
                die("merge program failed");
        return err;
 }