Code

git-fetch--tool takes flags before the subcommand.
authorJunio C Hamano <junkio@cox.net>
Sat, 24 Feb 2007 12:35:31 +0000 (04:35 -0800)
committerJunio C Hamano <junkio@cox.net>
Sat, 24 Feb 2007 12:35:31 +0000 (04:35 -0800)
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-fetch.sh

index 80f63c85f04f9adafa5294f29ebb11b5b9193254..f875e0f99ee2138bdbbd617fb8572699b36dff3c 100755 (executable)
@@ -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