summaryrefslogtreecommitdiff
path: root/t/t7700-repack.sh
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2019-12-04 22:03:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-12-04 22:25:05 (GMT)
commitdcf9a748cabedd6353d411eb5119fbe7fdda6ff5 (patch)
tree228bd08a82646dd9735c2d3df733c989d51a43b8 /t/t7700-repack.sh
parentcfe5eda02abddaaeb78c4e8bb31357112f0d5413 (diff)
downloadgit-dcf9a748cabedd6353d411eb5119fbe7fdda6ff5.zip
git-dcf9a748cabedd6353d411eb5119fbe7fdda6ff5.tar.gz
git-dcf9a748cabedd6353d411eb5119fbe7fdda6ff5.tar.bz2
t7700: replace egrep with grep
The egrep expressions in this test suite were of the form `^$variable`. Although egrep works just fine, it's overkill since we're not using any extended regex. Replace egrep invocations with grep so that we aren't swatting flies with a sledgehammer. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7700-repack.sh')
-rwxr-xr-xt/t7700-repack.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t7700-repack.sh b/t/t7700-repack.sh
index 80ded48..bfef588 100755
--- a/t/t7700-repack.sh
+++ b/t/t7700-repack.sh
@@ -30,7 +30,7 @@ test_has_duplicate_object () {
idx=$(basename $p)
test "pack-$packsha1.idx" = "$idx" && continue
git verify-pack -v $p >packlist || return $?
- if egrep "^$objsha1" packlist
+ if grep "^$objsha1" packlist
then
found_duplicate_object=true
echo "DUPLICATE OBJECT FOUND"
@@ -135,7 +135,7 @@ test_expect_success 'packed unreachable obs in alternate ODB are not loosened' '
rm -f .git/objects/pack/* &&
mv pack-* .git/objects/pack/ &&
test 0 = $(git verify-pack -v -- .git/objects/pack/*.idx |
- egrep "^$csha1 " | sort | uniq | wc -l) &&
+ grep "^$csha1 " | sort | uniq | wc -l) &&
echo >.git/objects/info/alternates &&
test_must_fail git show $csha1
'
@@ -152,7 +152,7 @@ test_expect_success 'local packed unreachable obs that exist in alternate ODB ar
rm -f .git/objects/pack/* &&
mv pack-* .git/objects/pack/ &&
test 0 = $(git verify-pack -v -- .git/objects/pack/*.idx |
- egrep "^$csha1 " | sort | uniq | wc -l) &&
+ grep "^$csha1 " | sort | uniq | wc -l) &&
echo >.git/objects/info/alternates &&
test_must_fail git show $csha1
'