Skip to content

Commit 5397ea3

Browse files
committed
test-lib: Work around missing sum on Windows
t1002-read-tree-m-u-2way.sh uses 'sum', but it does not rely on the exact form of the sum, only that it is a hash digest. Therefore, we can sneak in 'md5sum' under the name 'sum'. Signed-off-by: Johannes Sixt <j6t@kdbg.org>
1 parent f17e9fb commit 5397ea3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

t/test-lib.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,5 +646,8 @@ case $(uname -s) in
646646
find () {
647647
/usr/bin/find "$@"
648648
}
649+
sum () {
650+
md5sum "$@"
651+
}
649652
;;
650653
esac

0 commit comments

Comments
 (0)