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
14 while case "$#" in 0) break ;; esac
36 echo "Where would you want to push today?"
41 remote
=$
(get_remote_url
"$@")
49 set x $
(cd "$GIT_DIR/refs" && find tags
-type f
-print) ;;
51 set x $
(cd "$GIT_DIR/refs" && find tags
-type f
-print) \
52 $
(get_remote_refs_for_push
"$@") ;;
54 set x $
(get_remote_refs_for_push
"$@") ;;
58 shift ;# away the initial 'x'
60 # $# is now 0 if there was no explicit refspec on the command line
61 # and there was no defalt refspec to push from remotes/ file.
62 # we will let git-send-pack to do its "matching refs" thing.
66 die
"Cannot use READ-ONLY transport to push to $remote" ;;
68 die
"Pushing with rsync transport is deprecated" ;;
71 set x
"$remote" "$@"; shift
72 test "$has_all" && set x
"$has_all" "$@" && shift
73 test "$has_force" && set x
"$has_force" "$@" && shift
74 test "$has_exec" && set x
"$has_exec" "$@" && shift
78 exec git-http-push
"$@";;
80 exec git-send-pack
"$@";;