mirror of
https://github.com/git/git.git
synced 2026-04-01 20:40:08 +02:00
test-lib: Work around missing sum on Windows
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
This commit is contained in:
@@ -10,12 +10,6 @@ This is identical to t1001, but uses -u to update the work tree as well.
|
||||
'
|
||||
. ./test-lib.sh
|
||||
|
||||
sum ./test-lib.sh >/dev/null 2>&1 || {
|
||||
function sum () {
|
||||
md5sum "$@"
|
||||
}
|
||||
}
|
||||
|
||||
_x40='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
|
||||
_x40="$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40"
|
||||
compare_change () {
|
||||
|
||||
@@ -646,5 +646,8 @@ case $(uname -s) in
|
||||
find () {
|
||||
/usr/bin/find "$@"
|
||||
}
|
||||
sum () {
|
||||
md5sum "$@"
|
||||
}
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user