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>
Nick Hengeveld committed
Nov 2, 2005 at 11:19 UTC
df8171ccb34ef346799b8bc2794d8707209c91d1
1 file changed
+7
-2
git-push.sh
+7
-2
@@ -46,7 +46,7 @@ esac
46
shift
47
48
case "$remote" in
49
-http://* | https://* | git://*)
49
+git://*)
50
die "Cannot use READ-ONLY transport to push to $remote" ;;
51
rsync://*)
52
die "Pushing with rsync transport is deprecated" ;;
@@ -57,4 +57,9 @@ test "$has_all" && set x "$has_all" "$@" && shift
57
test "$has_force" && set x "$has_force" "$@" && shift
58
test "$has_exec" && set x "$has_exec" "$@" && shift
59
60
-exec git-send-pack "$@"
60
+case "$remote" in
61
+http://* | https://*)
62
+ exec git-http-push "$@";;
63
+*)
64
+ exec git-send-pack "$@";;
65
+esac