Code

grep: fix exit status if external_grep() punts
authorClemens Buchacher <drizzd@aon.at>
Mon, 7 Sep 2009 08:48:01 +0000 (10:48 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Sep 2009 22:02:31 +0000 (15:02 -0700)
commit929e37d3dfef13895ef6e4b54c7d45962b234461
tree2ec74d98cb597395ead51cf8222f3d294b3f2184
parente276f018f2c1f0fc962fbe44a36708d1cdebada8
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>
builtin-grep.c