diff options
author | Martin Waitz <tali@admingilde.org> | 2006-05-07 20:19:09 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-07 15:33:43 -0700 |
commit | cf9dc65368113caa28f2829e2ada5477fbb031ec (patch) | |
tree | e3a58d8e1caba863f578844a9b7fe06f47339161 /git-clone.sh | |
parent | 6fe31e2e4cdb7ed5333107174e23fbf2e226e370 (diff) | |
download | git-cf9dc65368113caa28f2829e2ada5477fbb031ec.tar.gz git-cf9dc65368113caa28f2829e2ada5477fbb031ec.tar.xz |
clone: keep --reference even with -l -s
Both -l -s and --reference update objects/info/alternates and used
to write over each other.
Signed-off-by: Martin Waitz <tali@admingilde.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-clone.sh')
-rwxr-xr-x | git-clone.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-clone.sh b/git-clone.sh index 080516805..b78524767 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -265,7 +265,7 @@ yes,yes) test -f "$repo/objects/info/alternates" && cat "$repo/objects/info/alternates"; echo "$repo/objects" - } >"$GIT_DIR/objects/info/alternates" + } >>"$GIT_DIR/objects/info/alternates" ;; esac git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD" |