Browse Source

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

Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Junio C Hamano 18 years ago
parent
commit
fee7c2c71d
  1. 8
      git-fetch.sh

8
git-fetch.sh

@ -111,7 +111,7 @@ append_fetch_head () {
test -n "$verbose" && flags="$flags -v" test -n "$verbose" && flags="$flags -v"
test -n "$force" && flags="$flags -f" test -n "$force" && flags="$flags -f"
GIT_REFLOG_ACTION="$GIT_REFLOG_ACTION" \ GIT_REFLOG_ACTION="$GIT_REFLOG_ACTION" \
git-fetch--tool append-fetch-head $flags "$@" git-fetch--tool $flags append-fetch-head "$@"
} }


update_local_ref () { update_local_ref () {
@ -119,7 +119,7 @@ update_local_ref () {
test -n "$verbose" && flags="$flags -v" test -n "$verbose" && flags="$flags -v"
test -n "$force" && flags="$flags -f" test -n "$force" && flags="$flags -f"
GIT_REFLOG_ACTION="$GIT_REFLOG_ACTION" \ 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 # updating the current HEAD with git-fetch in a bare
@ -170,8 +170,8 @@ fetch_native () {
test -n "$verbose" && flags="$flags -v" test -n "$verbose" && flags="$flags -v"
test -n "$force" && flags="$flags -f" test -n "$force" && flags="$flags -f"
GIT_REFLOG_ACTION="$GIT_REFLOG_ACTION" \ GIT_REFLOG_ACTION="$GIT_REFLOG_ACTION" \
git-fetch--tool native-store \ git-fetch--tool $flags native-store \
$flags "$remote" "$remote_nick" "$refs" "$remote" "$remote_nick" "$refs"
) )
) || exit ) || exit



Loading…
Cancel
Save