diff options
| author | Junio C Hamano <junkio@cox.net> | 2005-11-08 01:25:59 -0800 |
|---|---|---|
| committer | Junio C Hamano <junkio@cox.net> | 2005-11-08 01:25:59 -0800 |
| commit | 5ca15b8af7f018b9ae9da30130f9dcd1a896e0b3 (patch) | |
| tree | e4ae4ad79b5560920696f3983c436b6d34ce18b8 /git-push.sh | |
| parent | Merge branch 'master' (diff) | |
| parent | git-am: do not lose already edited final-commit when resuming. (diff) | |
| download | git-0.99.9f.tar.gz git-0.99.9f.zip | |
GIT 0.99.9fv0.99.9f
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 |
