2 . git-sh-setup || 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 echo "Where would you want to push today?"
36 remote=$(get_remote_url "$@")
39 '') set x $(get_remote_refs_for_push "$@") ;;
44 http://* | https://* | git://* | rsync://* )
45 die "Cannot push to $remote" ;;
48 set x "$remote" "$@"; shift
49 test "$has_all" && set x "$has_all" "$@" && shift
50 test "$has_force" && set x "$has_force" "$@" && shift
51 test "$has_exec" && set x "$has_exec" "$@" && shift
53 exec git-send-pack "$@"