X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft7002-grep.sh;h=b81593780a2a6adaf34bb10293b607e3a303cfcd;hb=3e73cb2f48cc4044905455a9936692f967a0f9b3;hp=087bacb89747bb3da7fc3f7ab3fe08bacea91d52;hpb=c922b01f54c4bebe84daeacf014cfbc8dc68479b;p=git.git diff --git a/t/t7002-grep.sh b/t/t7002-grep.sh index 087bacb89..b81593780 100755 --- a/t/t7002-grep.sh +++ b/t/t7002-grep.sh @@ -113,7 +113,7 @@ do ' test_expect_success "grep -c $L (no /dev/null)" ' - ! git grep -c test $H | grep -q /dev/null + ! git grep -c test $H | grep /dev/null ' done @@ -165,7 +165,14 @@ test_expect_success 'log grep (6)' ' git log --author=-0700 --pretty=tformat:%s >actual && >expect && test_cmp expect actual +' +test_expect_success 'grep with CE_VALID file' ' + git update-index --assume-unchanged t/t && + rm t/t && + test "$(git grep --no-ext-grep t)" = "t/t:test" && + git update-index --no-assume-unchanged t/t && + git checkout t/t ' test_done