author | Clemens Buchacher <drizzd@aon.at> | |
Mon, 7 Sep 2009 08:48:01 +0000 (10:48 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 7 Sep 2009 22:02:31 +0000 (15:02 -0700) | ||
commit | 929e37d3dfef13895ef6e4b54c7d45962b234461 | |
tree | 2ec74d98cb597395ead51cf8222f3d294b3f2184 | tree | snapshot |
parent | e276f018f2c1f0fc962fbe44a36708d1cdebada8 | commit | diff |
grep: fix exit status if external_grep() punts
If external_grep() is called and punts, grep_cache() mistakenly reported a
hit, even if there were none. The bug can be triggered by calling "git
grep --no-color" from a subdirectory.
Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
If external_grep() is called and punts, grep_cache() mistakenly reported a
hit, even if there were none. The bug can be triggered by calling "git
grep --no-color" from a subdirectory.
Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-grep.c | diff | blob | history |