@matheusbsbs / matheus-bagliano / commits / 5397ea314f
Fork 0

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>

Johannes Sixt committed Mar 14, 2009 at 22:21 UTC 5397ea314f612eaaacfb13d978319afd2c724817
1 file changed +3
t/test-lib.sh
+3
@@ -646,5 +646,8 @@ case $(uname -s) in
646 find () {
647 /usr/bin/find "$@"
648 }
649 + sum () {
650 + md5sum "$@"
651 + }
652 ;;
653 esac