Code

clone: add test for push on an empty clone.
[git.git] / builtin-grep.c
index 9e7e766a496e44d3f5f266f24eb3430ae046235a..89489ddcf8edb85160036b0336ab4ce80c3cb6bc 100644 (file)
@@ -825,6 +825,8 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
                }
        }
 
+       if (opt.color && !opt.color_external)
+               builtin_grep = 1;
        if (!opt.pattern_list)
                die("no pattern given.");
        if ((opt.regflags != REG_NEWLINE) && opt.fixed)