From: Martin Waitz Date: Sun, 7 May 2006 18:19:33 +0000 (+0200) Subject: clone: don't clone the info/alternates file X-Git-Tag: v1.4.0-rc1~155^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0438402271cccc1711c603b0a7ba3134f1ce30f1;p=git.git clone: don't clone the info/alternates file Now that the cloned alternates file is parsed, too we don't need to copy it into our new repository, we just reference it. Signed-off-by: Martin Waitz Signed-off-by: Junio C Hamano --- diff --git a/git-clone.sh b/git-clone.sh index b78524767..227245c86 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -261,11 +261,7 @@ yes,yes) ;; yes) mkdir -p "$GIT_DIR/objects/info" - { - test -f "$repo/objects/info/alternates" && - cat "$repo/objects/info/alternates"; - echo "$repo/objects" - } >>"$GIT_DIR/objects/info/alternates" + echo "$repo/objects" >> "$GIT_DIR/objects/info/alternates" ;; esac git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD"