2 . git-sh-setup-script || die "Not a git archive"
4 # Parse out parameters and then stop at remote, so that we can
5 # translate it using .git/branches information
11 while case "$#" in 0) break ;; esac
21 die "Unknown parameter $1" ;;
31 die "Where would you want to push today?" ;;
34 . git-parse-remote-script
35 remote=$(get_remote_url "$@")
38 '') set x $(get_remote_refs_for_push "$@") ;;
43 http://* | https://* | git://* | rsync://* )
44 die "Cannot push to $remote" ;;
47 set x "$remote" "$@"; shift
48 test "$has_all" && set x "$has_all" "$@" && shift
49 test "$has_force" && set x "$has_force" "$@" && shift
50 test "$has_exec" && set x "$has_exec" "$@" && shift
52 exec git-send-pack "$@"