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