Skip to contentSkip to conversation

git-fetch: Fix single_force in append_fetch_head

PATCH New Santi Béjar 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 git-fetch: Fix single_force in append_fetch_head

This fixes the single force (+) when fetched with fetch_per_ref.

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

---
 git-fetch.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
git-fetch.sh +2 -2
index a650116..f97263a 100755
@@ -114,8 +114,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 "$@"
 }
Signature · 1 line
1.5.0.4.1024.g8085-dirty