Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2009-03-15 00:21:27 +0300
committerJohannes Sixt <j6t@kdbg.org>2009-03-20 00:04:25 +0300
commit5397ea314f612eaaacfb13d978319afd2c724817 (patch)
tree7cff0a08cf3274645a3437011c74bbd79bb4b11b /t/test-lib.sh
parentf17e9fbbe919bc1f4ecaa35a9cb0869a5ec47fc0 (diff)
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>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 4eda5aba4b..4720b9a92b 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