Allow fetch-pack to decide keeping the fetched pack without exploding
[gitweb.git] / git-ls-remote.sh
index 03b624ef33dd3690a3cf24b4eaab830e5875789b..dd22783824ab8d01bba9e589aa0f60d59c859272 100755 (executable)
@@ -23,7 +23,11 @@ do
   -u|--u|--up|--upl|--uploa|--upload|--upload-|--upload-p|--upload-pa|\
   --upload-pac|--upload-pack)
        shift
-       exec="--exec=$1"
+       exec="--upload-pack=$1"
+       shift;;
+  -u=*|--u=*|--up=*|--upl=*|--uplo=*|--uploa=*|--upload=*|\
+  --upload-=*|--upload-p=*|--upload-pa=*|--upload-pac=*|--upload-pack=*)
+       exec=--upload-pack=$(expr "$1" : '-[^=]*=\(.*\)')
        shift;;
   --)
   shift; break ;;