From: Junio C Hamano Date: Wed, 17 Aug 2005 22:18:41 +0000 (-0700) Subject: Make sure alternates are carried over from the original repository. X-Git-Tag: v0.99.5~15^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0f87f893657129907ff966f44aed7c7624d7ba1b;p=git.git Make sure alternates are carried over from the original repository. When we create a cheap local clone by pointing at the object databse of the original repository, we forgot to take the alternates the original repository might have had into account. Signed-off-by: Junio C Hamano --- diff --git a/git-clone-script b/git-clone-script index 909ccc530..99c245963 100755 --- a/git-clone-script +++ b/git-clone-script @@ -81,7 +81,11 @@ yes,yes) ;; yes) mkdir -p "$D/.git/objects/info" - echo "$repo/objects" >"$D/.git/objects/info/alternates" + { + test -f "$repo/objects/info/alternates" && + cat "$repo/objects/info/alternates"; + echo "$repo/objects" + } >"$D/.git/objects/info/alternates" ;; esac