X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-clone.sh;h=227245c865e3f33e3b795868c484a41d590c553a;hb=698ce6f87e0d6db380f7306e190e8586da184577;hp=b78524767c0a3fd8ce99412e1d0b92a9a9ba26fb;hpb=2fc240a7b21c060529c1d2e19d6b483361f81f2a;p=git.git diff --git a/git-clone.sh b/git-clone.sh index b7852476..227245c8 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"