Skip to content

Commit

Permalink
git-fetch: Fix single_force in append_fetch_head
Browse files Browse the repository at this point in the history
This fixes the single force (+) when fetched with fetch_per_ref.

Also use $LF as separator because IFS is $LF.

Signed-off-by: Santi Béjar <sbejar@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Santi Béjar authored and Junio C Hamano committed Mar 20, 2007
1 parent bb95e19 commit 08727ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ ls_remote_result=$(git ls-remote $exec "$remote") ||

append_fetch_head () {
flags=
test -n "$verbose" && flags="$flags -v"
test -n "$force" && flags="$flags -f"
test -n "$verbose" && flags="$flags$LF-v"
test -n "$force$single_force" && flags="$flags$LF-f"
GIT_REFLOG_ACTION="$GIT_REFLOG_ACTION" \
git-fetch--tool $flags append-fetch-head "$@"
}
Expand Down

0 comments on commit 08727ea

Please sign in to comment.