NO_IPV6 support for git daemon
[gitweb.git] / git.sh
diff --git a/git.sh b/git.sh
index f9676507916184d567ed76d9e69a9ce2d8b00798..ea710aafc130afb5b4adabcaab4ec996662cdc34 100755 (executable)
--- a/git.sh
+++ b/git.sh
@@ -6,7 +6,16 @@ case "$#" in
 0)     ;;
 *)     cmd="$1"
        shift
+       case "$cmd" in
+       -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
+               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]"