diff options
author | Santi Béjar <sbejar@gmail.com> | 2007-03-19 00:16:23 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-03-20 01:52:11 -0700 |
commit | 08727ea8bba8c81678e5cf15124ada23ad097bc3 (patch) | |
tree | 780dddb1432eb880afd089eef6c7016523b3e294 /git-fetch.sh | |
parent | bb95e19c5f1e470d2efe1c0e4e04c291019e4b25 (diff) | |
download | git-08727ea8bba8c81678e5cf15124ada23ad097bc3.tar.gz git-08727ea8bba8c81678e5cf15124ada23ad097bc3.tar.xz |
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>
Diffstat (limited to 'git-fetch.sh')
-rwxr-xr-x | git-fetch.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-fetch.sh b/git-fetch.sh index e21804284..93349330d 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -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 "$@" } |