Skip to content

Commit

Permalink
test-lib: Work around missing sum on Windows
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Sixt committed Mar 19, 2009
1 parent f17e9fb commit 5397ea3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions t/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -646,5 +646,8 @@ case $(uname -s) in
find () {
/usr/bin/find "$@"
}
sum () {
md5sum "$@"
}
;;
esac

0 comments on commit 5397ea3

Please sign in to comment.