mirror of
https://git.zx2c4.com/cgit
synced 2025-08-04 10:04:32 +02:00
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>
This commit is contained in:
parent
779631c6dc
commit
a4de0e810b
4 changed files with 5 additions and 6 deletions
|
@ -25,7 +25,7 @@ test_expect_success 'get root commit' '
|
|||
'
|
||||
|
||||
test_expect_success 'root commit contains diffstat' '
|
||||
grep "<a href=./foo/diff/file-1.id=[0-9a-f]\{40\}.>file-1</a>" tmp
|
||||
grep "<a href=./foo/diff/file-1.id=[0-9a-f]\{40,64\}.>file-1</a>" tmp
|
||||
'
|
||||
|
||||
test_expect_success 'root commit contains diff' '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue