From: Johannes Sixt Date: Sat, 14 Mar 2009 21:21:27 +0000 (+0100) Subject: test-lib: Work around missing sum on Windows X-Git-Tag: v1.6.3-rc0~93^2~17 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5397ea314f612eaaacfb13d978319afd2c724817;p=git.git 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 --- diff --git a/t/test-lib.sh b/t/test-lib.sh index 4eda5aba4..4720b9a92 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -646,5 +646,8 @@ case $(uname -s) in find () { /usr/bin/find "$@" } + sum () { + md5sum "$@" + } ;; esac