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" ;;
30 . git-parse-remote-script
31 remote=$(get_remote_url "$@")
34 '') set x $(get_remote_refs_for_push "$@") ;;
39 http://* | https://* | git://* | rsync://* )
40 die "Cannot push to $remote" ;;
43 set x "$remote" "$@"; shift
44 test "$has_all" && set x "$has_all" "$@" && shift
45 test "$has_force" && set x "$has_force" "$@" && shift
46 test "$has_exec" && set x "$has_exec" "$@" && shift
48 exec git-send-pack "$@"