summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 067744b)
raw | patch | inline | side by side (parent: 067744b)
author | Nick Hengeveld <nickh@reactrix.com> | |
Wed, 2 Nov 2005 19:19:31 +0000 (11:19 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 8 Nov 2005 08:23:12 +0000 (00:23 -0800) |
Signed-off-by: Nick Hengeveld <nickh@reactrix.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-push.sh | patch | blob | history |
diff --git a/git-push.sh b/git-push.sh
index 5aa6531945c9e3494e34abb08d81e9ad03864521..edc0b8317a6d566895c4a2df6a3f7d86773ca138 100755 (executable)
--- a/git-push.sh
+++ b/git-push.sh
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" ;;
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