3 USAGE='[--all] [--tags] [--force] <repository> [<refspec>...]'
6 # Parse out parameters and then stop at remote, so that we can
7 # translate it using .git/branches information
15 while case "$#" in 0) break ;; esac
41 echo "Where would you want to push today?"
46 remote=$(get_remote_url "$@")
54 set x $(cd "$GIT_DIR/refs" && find tags -type f -print) ;;
56 set x $(cd "$GIT_DIR/refs" && find tags -type f -print) \
57 $(get_remote_refs_for_push "$@") ;;
59 set x $(get_remote_refs_for_push "$@") ;;
63 shift ;# away the initial 'x'
65 # $# is now 0 if there was no explicit refspec on the command line
66 # and there was no default refspec to push from remotes/ file.
67 # we will let git-send-pack to do its "matching refs" thing.
71 die "Cannot use READ-ONLY transport to push to $remote" ;;
73 die "Pushing with rsync transport is deprecated" ;;
76 set x "$remote" "$@"; shift
77 test "$has_all" && set x "$has_all" "$@" && shift
78 test "$has_force" && set x "$has_force" "$@" && shift
79 test "$has_exec" && set x "$has_exec" "$@" && shift
80 test "$has_thin" && set x "$has_thin" "$@" && shift
84 exec git-http-push "$@";;
86 exec git-send-pack "$@";;