| . git-sh-setup || die "Not a git archive" |
| die "Usage: git push [--all] [--force] <repository> [<refspec>]" |
| # Parse out parameters and then stop at remote, so that we can |
| # translate it using .git/branches information |
| while case "$#" in 0) break ;; esac |
| echo "Where would you want to push today?" |
| remote=$(get_remote_url "$@") |
| '') set x $(get_remote_refs_for_push "$@") ;; |
| http://* | https://* | git://*) |
| die "Cannot use READ-ONLY transport to push to $remote" ;; |
| die "Pushing with rsync transport is deprecated" ;; |
| set x "$remote" "$@"; shift |
| test "$has_all" && set x "$has_all" "$@" && shift |
| test "$has_force" && set x "$has_force" "$@" && shift |
| test "$has_exec" && set x "$has_exec" "$@" && shift |