diff --git a/git-sh-setup.sh b/git-sh-setup.sh
index a44b1c74a38d6310d7a1bde969cbbcb51f977188..9cceb21a82881b5f12e85769fcbfeb2146631d3c 100755 (executable)
--- a/git-sh-setup.sh
+++ b/git-sh-setup.sh
}
: ${GIT_OBJECT_DIRECTORY="$GIT_DIR/objects"}
fi
}
: ${GIT_OBJECT_DIRECTORY="$GIT_DIR/objects"}
fi
+
+# Fix some commands on Windows
+case $(uname -s) in
+*MINGW*)
+ # Windows has its own (incompatible) sort and find
+ sort () {
+ /usr/bin/sort "$@"
+ }
+ find () {
+ /usr/bin/find "$@"
+ }
+ ;;
+esac