{"thread":{"id":"7303","subject":"[PATCH] git-fetch: Fix single_force in append_fetch_head","startedAt":"2007-03-18T23:16:23Z","lastAt":"2007-03-18T23:16:23Z","messageCount":1,"participants":["Santi Béjar"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"37419","messageId":"87abyai1mg.fsf@gmail.com","threadId":"7303","inReplyTo":null,"subject":"[PATCH] git-fetch: Fix single_force in append_fetch_head","fromName":"Santi Béjar","fromEmail":"sbejar@gmail.com","sentAt":"2007-03-18T23:16:23Z","receivedAt":"2007-03-18T23:16:23Z","isPatch":true,"sender":{"key":"santi@agolina.net","avatar":null},"body":"\nThis fixes the single force (+) when fetched with fetch_per_ref.\n\nAlso use $LF as separator because IFS is $LF.\n\nSigned-off-by: Santi Béjar <sbejar@gmail.com>\n---\n git-fetch.sh |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/git-fetch.sh b/git-fetch.sh\nindex a650116..f97263a 100755\n--- a/git-fetch.sh\n+++ b/git-fetch.sh\n@@ -114,8 +114,8 @@ ls_remote_result=$(git ls-remote $exec \"$remote\") ||\n \n append_fetch_head () {\n \tflags=\n-\ttest -n \"$verbose\" && flags=\"$flags -v\"\n-\ttest -n \"$force\" && flags=\"$flags -f\"\n+\ttest -n \"$verbose\" && flags=\"$flags$LF-v\"\n+\ttest -n \"$force$single_force\" && flags=\"$flags$LF-f\"\n \tGIT_REFLOG_ACTION=\"$GIT_REFLOG_ACTION\" \\\n \t\tgit-fetch--tool $flags append-fetch-head \"$@\"\n }\n-- \n1.5.0.4.1024.g8085-dirty\n"}]}