summaryrefslogtreecommitdiff
path: root/git-fetch.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-02-24 04:35:31 -0800
committerJunio C Hamano <junkio@cox.net>2007-02-24 04:35:31 -0800
commitfee7c2c71d9e35b2f54aa3631072bd7f73bb7b4c (patch)
tree7efa67129d4f650128dfd71e52f7f2bbfd15c63d /git-fetch.sh
parent617669da4f80ecf05db7ef1976b56260e2124cc2 (diff)
downloadgit-fee7c2c71d9e35b2f54aa3631072bd7f73bb7b4c.tar.gz
git-fetch--tool takes flags before the subcommand.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-fetch.sh')
-rwxr-xr-xgit-fetch.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/git-fetch.sh b/git-fetch.sh
index 80f63c85f0..f875e0f99e 100755
--- a/git-fetch.sh
+++ b/git-fetch.sh
@@ -111,7 +111,7 @@ append_fetch_head () {
test -n "$verbose" && flags="$flags -v"
test -n "$force" && flags="$flags -f"
GIT_REFLOG_ACTION="$GIT_REFLOG_ACTION" \
- git-fetch--tool append-fetch-head $flags "$@"
+ git-fetch--tool $flags append-fetch-head "$@"
}
update_local_ref () {
@@ -119,7 +119,7 @@ update_local_ref () {
test -n "$verbose" && flags="$flags -v"
test -n "$force" && flags="$flags -f"
GIT_REFLOG_ACTION="$GIT_REFLOG_ACTION" \
- git-fetch--tool update-local-ref $flags "$@"
+ git-fetch--tool $flags update-local-ref "$@"
}
# updating the current HEAD with git-fetch in a bare
@@ -170,8 +170,8 @@ fetch_native () {
test -n "$verbose" && flags="$flags -v"
test -n "$force" && flags="$flags -f"
GIT_REFLOG_ACTION="$GIT_REFLOG_ACTION" \
- git-fetch--tool native-store \
- $flags "$remote" "$remote_nick" "$refs"
+ git-fetch--tool $flags native-store \
+ "$remote" "$remote_nick" "$refs"
)
) || exit