projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
applypatch: use "index" lines not "applies-to".
[git.git]
/
git-push.sh
diff --git
a/git-push.sh
b/git-push.sh
index
5aa6531
..
140c8f8
100755
(executable)
--- a/
git-push.sh
+++ b/
git-push.sh
@@
-1,5
+1,5
@@
#!/bin/sh
#!/bin/sh
-. git-sh-setup
|| die "Not a git archive"
+. git-sh-setup
usage () {
die "Usage: git push [--all] [--force] <repository> [<refspec>]"
usage () {
die "Usage: git push [--all] [--force] <repository> [<refspec>]"
@@
-46,7
+46,7
@@
esac
shift
case "$remote" in
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" ;;
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
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