diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-11-15 12:14:35 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-11-15 12:14:35 +0900 |
commit | 4fff9c7f30d7fef04be801bb465a47489570af75 (patch) | |
tree | e64bbd6de3ce701ca786acb9c4c53b4926416d4a /t/test-lib.sh | |
parent | Merge branch 'ab/pcre-v2' (diff) | |
parent | t4201: make use of abbreviation in the test more robust (diff) | |
download | tgif-4fff9c7f30d7fef04be801bb465a47489570af75.tar.xz |
Merge branch 'cb/t4201-robustify'
A test update.
* cb/t4201-robustify:
t4201: make use of abbreviation in the test more robust
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index 9b61f16f7a..116bd6a70c 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -175,9 +175,10 @@ esac # Convenience # -# A regexp to match 5 and 40 hexdigits +# A regexp to match 5, 35 and 40 hexdigits _x05='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]' -_x40="$_x05$_x05$_x05$_x05$_x05$_x05$_x05$_x05" +_x35="$_x05$_x05$_x05$_x05$_x05$_x05$_x05" +_x40="$_x35$_x05" # Zero SHA-1 _z40=0000000000000000000000000000000000000000 @@ -193,7 +194,7 @@ LF=' # when case-folding filenames u200c=$(printf '\342\200\214') -export _x05 _x40 _z40 LF u200c EMPTY_TREE EMPTY_BLOB +export _x05 _x35 _x40 _z40 LF u200c EMPTY_TREE EMPTY_BLOB # Each test should start with something like this, after copyright notices: # |