diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2018-05-13 04:24:15 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-14 04:02:01 +0200 |
commit | 2ece6ad2819078733d8fb8a7cd47929786631ed1 (patch) | |
tree | 949a837a8dfdd84945f35e677053e7be82727299 /t/t1001-read-tree-m-2way.sh | |
parent | t/test-lib: introduce OID_REGEX (diff) | |
download | git-2ece6ad2819078733d8fb8a7cd47929786631ed1.tar.xz git-2ece6ad2819078733d8fb8a7cd47929786631ed1.zip |
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/t1001-read-tree-m-2way.sh')
-rwxr-xr-x | t/t1001-read-tree-m-2way.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1001-read-tree-m-2way.sh b/t/t1001-read-tree-m-2way.sh index 5ededd8e40..1057a96b24 100755 --- a/t/t1001-read-tree-m-2way.sh +++ b/t/t1001-read-tree-m-2way.sh @@ -30,7 +30,7 @@ read_tree_twoway () { compare_change () { sed -n >current \ -e '/^--- /d; /^+++ /d; /^@@ /d;' \ - -e 's/^\([-+][0-7][0-7][0-7][0-7][0-7][0-7]\) '"$_x40"' /\1 X /p' \ + -e 's/^\([-+][0-7][0-7][0-7][0-7][0-7][0-7]\) '"$OID_REGEX"' /\1 X /p' \ "$1" test_cmp expected current } |