From: Nick Hengeveld Date: Wed, 2 Nov 2005 19:19:31 +0000 (-0800) Subject: Add support for git-http-push to git-push script X-Git-Tag: v0.99.9f^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=df8171ccb34ef346799b8bc2794d8707209c91d1;p=git.git Add support for git-http-push to git-push script Signed-off-by: Nick Hengeveld Signed-off-by: Junio C Hamano --- diff --git a/git-push.sh b/git-push.sh index 5aa653194..edc0b8317 100755 --- a/git-push.sh +++ b/git-push.sh @@ -46,7 +46,7 @@ esac shift case "$remote" in -http://* | https://* | git://*) +git://*) die "Cannot use READ-ONLY transport to push to $remote" ;; rsync://*) die "Pushing with rsync transport is deprecated" ;; @@ -57,4 +57,9 @@ test "$has_all" && set x "$has_all" "$@" && shift test "$has_force" && set x "$has_force" "$@" && shift test "$has_exec" && set x "$has_exec" "$@" && shift -exec git-send-pack "$@" +case "$remote" in +http://* | https://*) + exec git-http-push "$@";; +*) + exec git-send-pack "$@";; +esac