diff options
author | Christian Hesse | 2020-10-20 23:46:09 +0200 |
---|---|---|
committer | Christian Hesse | 2020-10-20 23:57:12 +0200 |
commit | a4de0e810b69710c3b32f6d253d80d16dec09f36 (patch) | |
tree | bae0b334de05e134d06b48aeb888a3bf134a705a /tests/t0105-commit.sh | |
parent | 779631c6dc23c15bbbf45a7c7ab9fffb619037b7 (diff) | |
download | cgit-a4de0e810b69710c3b32f6d253d80d16dec09f36.tar.gz cgit-a4de0e810b69710c3b32f6d253d80d16dec09f36.tar.bz2 cgit-a4de0e810b69710c3b32f6d253d80d16dec09f36.zip |
global: replace hard coded hash length
With sha1 we had a guaranteed length of 40 hex chars. This changes now
that we have to support sha256 with 64 hex chars... Support both.
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'tests/t0105-commit.sh')
-rwxr-xr-x | tests/t0105-commit.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/t0105-commit.sh b/tests/t0105-commit.sh index 9cdf55c..1a12ee3 100755 --- a/tests/t0105-commit.sh +++ b/tests/t0105-commit.sh | |||
@@ -25,7 +25,7 @@ test_expect_success 'get root commit' ' | |||
25 | ' | 25 | ' |
26 | 26 | ||
27 | test_expect_success 'root commit contains diffstat' ' | 27 | test_expect_success 'root commit contains diffstat' ' |
28 | grep "<a href=./foo/diff/file-1.id=[0-9a-f]\{40\}.>file-1</a>" tmp | 28 | grep "<a href=./foo/diff/file-1.id=[0-9a-f]\{40,64\}.>file-1</a>" tmp |
29 | ' | 29 | ' |
30 | 30 | ||
31 | test_expect_success 'root commit contains diff' ' | 31 | test_expect_success 'root commit contains diff' ' |