Remove git-rename. git-mv does the same
[gitweb.git] / git.sh
diff --git a/git.sh b/git.sh
index dc383eddea5bf96a1208872299a4c2370a2f7360..94940aea28a45294126b9065e09017ae302e7a51 100755 (executable)
--- a/git.sh
+++ b/git.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 cmd=
-path=$(dirname $0)
+path=$(dirname "$0")
 case "$#" in
 0)     ;;
 *)     cmd="$1"
@@ -11,7 +11,18 @@ case "$#" in
                echo "git version @@GIT_VERSION@@"
                exit 0 ;;
        esac
-       test -x $path/git-$cmd && exec $path/git-$cmd "$@" ;;
+       
+       test -x "$path/git-$cmd" && exec "$path/git-$cmd" "$@"
+       
+       case '@@X@@' in
+           '')
+               ;;
+           *)
+               test -x "$path/git-$cmd@@X@@" &&
+               exec "$path/git-$cmd@@X@@" "$@"
+               ;;
+       esac
+       ;;
 esac
 
 echo "Usage: git COMMAND [OPTIONS] [TARGET]"