Reduce memory usage in git-update-server-info.
[git.git] / git.sh
diff --git a/git.sh b/git.sh
index dc383ed..7400c16 100755 (executable)
--- a/git.sh
+++ b/git.sh
@@ -11,7 +11,17 @@ 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]"