Re: [PATCH] Use --upload-pack in clone, fetch and ls-remote instead of --exec

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Uwe Kleine-König  <ukleinek@xxxxxxxxxxxxxxxxxxxxxxxxxx> writes:

> Signed-off-by: Uwe Kleine-König <ukleinek@xxxxxxxxxxxxxxxxxxxxxxxxxx>
> ---
> I don't like the change to git-fetch.sh.  But currently git-fetch-pack
> needs a = and ls-remote doesn't like it.  So it continues to have two
> variables for the remote upload program.

Then maybe something like this is in order to make things more
consistent?

Totally untested, of course ;-).

diff --git a/git-ls-remote.sh b/git-ls-remote.sh
index 03b624e..69d4c2a 100755
--- a/git-ls-remote.sh
+++ b/git-ls-remote.sh
@@ -25,6 +25,10 @@ do
 	shift
 	exec="--exec=$1"
 	shift;;
+  -u=*|--u=*|--up=*|--upl=*|--uplo=*|--uploa=*|--upload=*|\
+  --upload-=*|--upload-p=*|--upload-pa=*|--upload-pac=*|--upload-pack=*)
+  	exec=--exec=`expr "$1" : '-[^=]*=\(.*\)'`
+	shift;;
   --)
   shift; break ;;
   -*)

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]