summaryrefslogtreecommitdiff
path: root/git-clone.sh
diff options
context:
space:
mode:
authorMartin Waitz <tali@admingilde.org>2006-05-07 20:19:09 +0200
committerJunio C Hamano <junkio@cox.net>2006-05-07 15:33:43 -0700
commitcf9dc65368113caa28f2829e2ada5477fbb031ec (patch)
treee3a58d8e1caba863f578844a9b7fe06f47339161 /git-clone.sh
parent6fe31e2e4cdb7ed5333107174e23fbf2e226e370 (diff)
downloadgit-cf9dc65368113caa28f2829e2ada5477fbb031ec.tar.gz
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-xgit-clone.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-clone.sh b/git-clone.sh
index 0805168057..b78524767c 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"