@matheusbsbs / matheus-bagliano / commits / fee7c2c71d
Fork 0

git-fetch--tool takes flags before the subcommand.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Feb 24, 2007 at 04:35 UTC fee7c2c71d9e35b2f54aa3631072bd7f73bb7b4c
1 file changed +4 -4
git-fetch.sh
+4 -4
@@ -111,7 +111,7 @@ append_fetch_head () {
111 test -n "$verbose" && flags="$flags -v"
112 test -n "$force" && flags="$flags -f"
113 GIT_REFLOG_ACTION="$GIT_REFLOG_ACTION" \
114 - git-fetch--tool append-fetch-head $flags "$@"
114 + git-fetch--tool $flags append-fetch-head "$@"
115 }
116
117 update_local_ref () {
@@ -119,7 +119,7 @@ update_local_ref () {
119 test -n "$verbose" && flags="$flags -v"
120 test -n "$force" && flags="$flags -f"
121 GIT_REFLOG_ACTION="$GIT_REFLOG_ACTION" \
122 - git-fetch--tool update-local-ref $flags "$@"
122 + git-fetch--tool $flags update-local-ref "$@"
123 }
124
125 # updating the current HEAD with git-fetch in a bare
@@ -170,8 +170,8 @@ fetch_native () {
170 test -n "$verbose" && flags="$flags -v"
171 test -n "$force" && flags="$flags -f"
172 GIT_REFLOG_ACTION="$GIT_REFLOG_ACTION" \
173 - git-fetch--tool native-store \
174 - $flags "$remote" "$remote_nick" "$refs"
173 + git-fetch--tool $flags native-store \
174 + "$remote" "$remote_nick" "$refs"
175 )
176 ) || exit
177