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
39 echo "Where would you want to push today?"
44 remote
=$
(get_remote_url
"$@")
52 set x $
(cd "$GIT_DIR/refs" && find tags
-type f
-print) ;;
54 set x $
(cd "$GIT_DIR/refs" && find tags
-type f
-print) \
55 $
(get_remote_refs_for_push
"$@") ;;
57 set x $
(get_remote_refs_for_push
"$@") ;;
61 shift ;# away the initial 'x'
63 # $# is now 0 if there was no explicit refspec on the command line
64 # and there was no defalt refspec to push from remotes/ file.
65 # we will let git-send-pack to do its "matching refs" thing.
69 die
"Cannot use READ-ONLY transport to push to $remote" ;;
71 die
"Pushing with rsync transport is deprecated" ;;
74 set x
"$remote" "$@"; shift
75 test "$has_all" && set x
"$has_all" "$@" && shift
76 test "$has_force" && set x
"$has_force" "$@" && shift
77 test "$has_exec" && set x
"$has_exec" "$@" && shift
78 test "$has_thin" && set x
"$has_thin" "$@" && shift
82 exec git-http-push
"$@";;
84 exec git-send-pack
"$@";;