diff options
author | Nick Hengeveld <nickh@reactrix.com> | 2005-11-02 11:19:31 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-08 00:23:12 -0800 |
commit | df8171ccb34ef346799b8bc2794d8707209c91d1 (patch) | |
tree | a7033c71c8a4f78be26e9967b366abf7352c3b3c /git-push.sh | |
parent | 067744bd5dc23540745788b5aa11d4e9dea1ceef (diff) | |
download | git-df8171ccb34ef346799b8bc2794d8707209c91d1.tar.gz |
Add support for git-http-push to git-push script
Signed-off-by: Nick Hengeveld <nickh@reactrix.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-push.sh')
-rwxr-xr-x | git-push.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/git-push.sh b/git-push.sh index 5aa6531945..edc0b8317a 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 |