]> rtime.felk.cvut.cz Git - git.git/commitdiff
test-lib: Work around missing sum on Windows
authorJohannes Sixt <j6t@kdbg.org>
Sat, 14 Mar 2009 21:21:27 +0000 (22:21 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Thu, 19 Mar 2009 21:04:25 +0000 (22:04 +0100)
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>
t/test-lib.sh

index 4eda5aba4b48eb871e684ccd9cd1b6e42439f025..4720b9a92b560ede0bf7171d6f9eb6827e19bdcf 100644 (file)
@@ -646,5 +646,8 @@ case $(uname -s) in
        find () {
                /usr/bin/find "$@"
        }
+       sum () {
+               md5sum "$@"
+       }
        ;;
 esac