summaryrefslogtreecommitdiff
path: root/t/t4014-format-patch.sh
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-05-13 02:24:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-14 02:02:01 (GMT)
commit2ece6ad2819078733d8fb8a7cd47929786631ed1 (patch)
tree949a837a8dfdd84945f35e677053e7be82727299 /t/t4014-format-patch.sh
parentbd981d5fc33677b4f074bac309ce64b39ba9d02e (diff)
downloadgit-2ece6ad2819078733d8fb8a7cd47929786631ed1.zip
git-2ece6ad2819078733d8fb8a7cd47929786631ed1.tar.gz
git-2ece6ad2819078733d8fb8a7cd47929786631ed1.tar.bz2
t: switch $_x40 to $OID_REGEX
Switch all uses of $_x40 to $OID_REGEX so that they work correctly with larger hashes. This commit was created by using the following sed command to modify all files in the t directory except t/test-lib.sh: sed -i 's/\$_x40/$OID_REGEX/g' Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4014-format-patch.sh')
-rwxr-xr-xt/t4014-format-patch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh
index 0dbf7d5..dac3f34 100755
--- a/t/t4014-format-patch.sh
+++ b/t/t4014-format-patch.sh
@@ -1530,7 +1530,7 @@ test_expect_success 'format-patch --zero-commit' '
test_expect_success 'From line has expected format' '
git format-patch --stdout v2..v1 >patch2 &&
grep "^From " patch2 >from &&
- grep "^From $_x40 Mon Sep 17 00:00:00 2001$" patch2 >filtered &&
+ grep "^From $OID_REGEX Mon Sep 17 00:00:00 2001$" patch2 >filtered &&
test_cmp from filtered
'