Add support for git-http-push to git-push script
authorNick Hengeveld <nickh@reactrix.com>
Wed, 2 Nov 2005 19:19:31 +0000 (11:19 -0800)
committerJunio 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>
git-push.sh

index 5aa6531..edc0b83 100755 (executable)
@@ -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