diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-27 11:10:24 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-04-27 17:28:18 -0700 |
commit | c922b01f54c4bebe84daeacf014cfbc8dc68479b (patch) | |
tree | 073eb94c6c06fa06013197a01ce703bda59b7923 /t | |
parent | Documentation: fix a grammatical error in api-builtin.txt (diff) | |
download | tgif-c922b01f54c4bebe84daeacf014cfbc8dc68479b.tar.xz |
grep: fix segfault when "git grep '('" is given
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-x | t/t7002-grep.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t7002-grep.sh b/t/t7002-grep.sh index 5e359cb561..087bacb897 100755 --- a/t/t7002-grep.sh +++ b/t/t7002-grep.sh @@ -26,6 +26,10 @@ test_expect_success setup ' git commit -m initial ' +test_expect_success 'grep should not segfault with a bad input' ' + test_must_fail git grep "(" +' + for H in HEAD '' do case "$H" in |