Merge branch 'tb/connect-ipv6-parse-fix' into maint
[gitweb.git] / builtin / grep.c
index e77f7cf109a02a10b2f38132b1a169b43d3c11d9..fe7b9fdd93c78c302f5be32e51c59a31a87412fb 100644 (file)
@@ -885,7 +885,7 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
                }
        }
 
-       if (!show_in_pager)
+       if (!show_in_pager && !opt.status_only)
                setup_pager();
 
        if (!use_index && (untracked || cached))