diff options
author | Đoàn Trần Công Danh <congdanhqx@gmail.com> | 2022-09-21 15:02:30 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-09-21 20:00:18 +0200 |
commit | a764c37bad6b4da2b248c30af1c251110fe1e031 (patch) | |
tree | bc1a7f42558e8f676e731094adb179e9f27f8c5e /t/t5550-http-fetch-dumb.sh | |
parent | CodingGuidelines: allow grep -E (diff) | |
download | git-a764c37bad6b4da2b248c30af1c251110fe1e031.tar.xz git-a764c37bad6b4da2b248c30af1c251110fe1e031.zip |
t: remove \{m,n\} from BRE grep usage
The CodingGuidelines says we should avoid \{m,n\} in BRE usage.
And their usages in our code base is limited, and subjectively
hard to read.
Replace them with ERE.
Except for "0\{40\}" which would be changed to "$ZERO_OID",
which is a better value for testing with:
GIT_TEST_DEFAULT_HASH=sha256
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5550-http-fetch-dumb.sh')
-rwxr-xr-x | t/t5550-http-fetch-dumb.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5550-http-fetch-dumb.sh b/t/t5550-http-fetch-dumb.sh index d7cf85ffea..8f182a3cbf 100755 --- a/t/t5550-http-fetch-dumb.sh +++ b/t/t5550-http-fetch-dumb.sh @@ -234,7 +234,7 @@ test_expect_success 'http-fetch --packfile' ' --index-pack-arg=--keep \ "$HTTPD_URL"/dumb/repo_pack.git/$p >out && - grep "^keep.[0-9a-f]\{16,\}$" out && + grep -E "^keep.[0-9a-f]{16,}$" out && cut -c6- out >packhash && # Ensure that the expected files are generated |