Code

remote-curl: Fix Accept header for smart HTTP connections
[git.git] / builtin-grep.c
index a5b6719a1af014497399ea6ff4f1a6f3852a0570..af6c6fe8a7ed677de84cdbd828e8daae0a6bb12d 100644 (file)
@@ -191,8 +191,6 @@ static int grep_file(struct grep_opt *opt, const char *filename)
                        error("'%s': %s", filename, strerror(errno));
                return 0;
        }
-       if (!st.st_size)
-               return 0; /* empty file -- no grep hit */
        if (!S_ISREG(st.st_mode))
                return 0;
        sz = xsize_t(st.st_size);