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. Signed-off-by: Santi Béjar <sbejar@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Santi Béjar committed
Mar 19, 2007 at 00:16 UTC
08727ea8bba8c81678e5cf15124ada23ad097bc3
1 file changed
+2
-2
git-fetch.sh
+2
-2
@@ -110,8 +110,8 @@ ls_remote_result=$(git ls-remote $exec "$remote") ||
110
111
append_fetch_head () {
112
flags=
113
- test -n "$verbose" && flags="$flags -v"
114
- test -n "$force" && flags="$flags -f"
113
+ test -n "$verbose" && flags="$flags$LF-v"
114
+ test -n "$force$single_force" && flags="$flags$LF-f"
115
GIT_REFLOG_ACTION="$GIT_REFLOG_ACTION" \
116
git-fetch--tool $flags append-fetch-head "$@"
117
}