summaryrefslogtreecommitdiffstats
path: root/git-ls-remote.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-01-23 09:51:53 +0100
committerJunio C Hamano <junkio@cox.net>2007-01-25 01:12:15 +0100
commitae1dffcb28ee89a23f8d2747be65e17c8eab1690 (patch)
tree669b709d9699b1da49dbeb69813c33b44707c56f /git-ls-remote.sh
parentrename --exec to --upload-pack for fetch-pack and peek-remote (diff)
downloadgit-ae1dffcb28ee89a23f8d2747be65e17c8eab1690.tar.xz
git-ae1dffcb28ee89a23f8d2747be65e17c8eab1690.zip
ls-remote and clone: accept --upload-pack=<path> as well.
This makes them consistent with other commands that take the path to the upload-pack program. We also pass --upload-pack instead of --exec to the underlying fetch-pack, although it is not strictly necessary. [jc: original motivation from Uwe] Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to '')
-rwxr-xr-xgit-ls-remote.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/git-ls-remote.sh b/git-ls-remote.sh
index 03b624ef33..dd22783824 100755
--- a/git-ls-remote.sh
+++ b/git-ls-remote.sh
@@ -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 ;;