X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-sh-setup.sh;h=9cceb21a82881b5f12e85769fcbfeb2146631d3c;hb=467c0197fd0a49078d05839ee385046cd3707a5b;hp=a44b1c74a38d6310d7a1bde969cbbcb51f977188;hpb=2a2ad0c0007b9f79768b4564644ac9eaaa7310b6;p=git.git diff --git a/git-sh-setup.sh b/git-sh-setup.sh index a44b1c74a..9cceb21a8 100755 --- a/git-sh-setup.sh +++ b/git-sh-setup.sh @@ -142,3 +142,16 @@ then } : ${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