X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-clone.sh;h=227245c865e3f33e3b795868c484a41d590c553a;hb=8dd84b0169864f638516b82df40b0a3ef6e2cb92;hp=0805168057c871549d87ff4e9e30d654abbed0a4;hpb=f327dbced25a3c6fcc0b84d2d6adffa9343b09f0;p=git.git diff --git a/git-clone.sh b/git-clone.sh index 080516805..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"