2 . git-sh-setup || die
"Not a git archive"
5 die
"Usage: git push [--all] [--force] <repository> [<refspec>]"
9 # Parse out parameters and then stop at remote, so that we can
10 # translate it using .git/branches information
16 while case "$#" in 0) break ;; esac
36 echo "Where would you want to push today?"
41 remote
=$
(get_remote_url
"$@")
44 '') set x $
(get_remote_refs_for_push
"$@") ;;
50 die
"Cannot use READ-ONLY transport to push to $remote" ;;
52 die
"Pushing with rsync transport is deprecated" ;;
55 set x
"$remote" "$@"; shift
56 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
62 exec git-http-push
"$@";;
64 exec git-send-pack
"$@";;