git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-fetch: Fix single_force in append_fetch_head

From
SBSanti Béjar <sbejar@gmail.com>
Date
Mar 18, 2007, 23:16 UTC
Message-ID
<87abyai1mg.fsf@gmail.com>
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>
---
 git-fetch.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/git-fetch.sh b/git-fetch.sh
index a650116..f97263a 100755
--- a/git-fetch.sh
+++ b/git-fetch.sh
@@ -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 "$@"
 }
-- 
1.5.0.4.1024.g8085-dirty
Message 1 of 1 in “git-fetch: Fix single_force in append_fetch_head”
  1. git-fetch: Fix single_force in append_fetch_headSanti Béjar, Mar 18, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.