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>
This commit is contained in:
parent
067744bd5d
commit
df8171ccb3
@ -46,7 +46,7 @@ esac
|
|||||||
shift
|
shift
|
||||||
|
|
||||||
case "$remote" in
|
case "$remote" in
|
||||||
http://* | https://* | git://*)
|
git://*)
|
||||||
die "Cannot use READ-ONLY transport to push to $remote" ;;
|
die "Cannot use READ-ONLY transport to push to $remote" ;;
|
||||||
rsync://*)
|
rsync://*)
|
||||||
die "Pushing with rsync transport is deprecated" ;;
|
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_force" && set x "$has_force" "$@" && shift
|
||||||
test "$has_exec" && set x "$has_exec" "$@" && 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
|
||||||
|
Loading…
Reference in New Issue
Block a user