diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2020-07-29 23:14:15 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-07-30 09:16:48 -0700 |
commit | e0a646ed4fd7ae0c3320f7fa56d6a7d6bbaa8142 (patch) | |
tree | 7cea5f3929db010f9a7f5f8ad79c2dc34fc56e0e /contrib/git-shell-commands | |
parent | t9500: ensure that algorithm info is preserved in config (diff) | |
download | tgif-e0a646ed4fd7ae0c3320f7fa56d6a7d6bbaa8142.tar.xz |
t9700: make hash size independent
The Perl test script for t9700 was matching on exactly 40 hex
characters. With SHA-256, we'll have 64 hex-character object IDs.
Create a variable with a regex which matches exactly 40 or 64 hex
characters and use that to match the output. Note that both of the uses
of this can be anchored, which makes the code simpler, so do that as
well.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/git-shell-commands')
0 files changed, 0 insertions, 0 deletions