For the benefit of Cygwin, test for git-cmd.exe
[git.git] / git.sh
diff --git a/git.sh b/git.sh
index 178d0f0..ea710aa 100755 (executable)
--- a/git.sh
+++ b/git.sh
@@ -11,7 +11,11 @@ case "$#" in
                echo "git version @@GIT_VERSION@@"
                exit 0 ;;
        esac
+
        test -x $path/git-$cmd && exec $path/git-$cmd "$@" ;;
+
+       # In case we're running on Cygwin...
+       test -x $path/git-$cmd.exe && exec $path/git-$cmd.exe "$@" ;;
 esac
 
 echo "Usage: git COMMAND [OPTIONS] [TARGET]"