diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-09-10 17:02:55 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-10 17:02:55 +0900 |
commit | f1b64e8e649566971a4b55122d72f0f1d07047d1 (patch) | |
tree | 053ed101439b96a47adf086bb6210931cb179660 /t | |
parent | Merge branch 'kd/stash-with-bash-4.4' into maint (diff) | |
parent | git-grep: correct exit code with --quiet and -L (diff) | |
download | tgif-f1b64e8e649566971a4b55122d72f0f1d07047d1.tar.xz |
Merge branch 'as/grep-quiet-no-match-exit-code-fix' into maint
"git grep -L" and "git grep --quiet -L" reported different exit
codes; this has been corrected.
* as/grep-quiet-no-match-exit-code-fix:
git-grep: correct exit code with --quiet and -L
Diffstat (limited to 't')
-rwxr-xr-x | t/t7810-grep.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh index f106387820..2a6679c2f5 100755 --- a/t/t7810-grep.sh +++ b/t/t7810-grep.sh @@ -374,6 +374,11 @@ test_expect_success 'grep -L -C' ' test_cmp expected actual ' +test_expect_success 'grep --files-without-match --quiet' ' + git grep --files-without-match --quiet nonexistent_string >actual && + test_cmp /dev/null actual +' + cat >expected <<EOF file:foo mmap bar_mmap EOF |