@matheusbsbs / matheus-bagliano / commits / 0438402271
Fork 0

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 <tali@admingilde.org> Signed-off-by: Junio C Hamano <junkio@cox.net>

Martin Waitz committed May 7, 2006 at 20:19 UTC 0438402271cccc1711c603b0a7ba3134f1ce30f1
1 file changed +1 -5
git-clone.sh
+1 -5
@@ -261,11 +261,7 @@ yes,yes)
261 ;;
262 yes)
263 mkdir -p "$GIT_DIR/objects/info"
264 - {
265 - test -f "$repo/objects/info/alternates" &&
266 - cat "$repo/objects/info/alternates";
267 - echo "$repo/objects"
268 - } >>"$GIT_DIR/objects/info/alternates"
264 + echo "$repo/objects" >> "$GIT_DIR/objects/info/alternates"
265 ;;
266 esac
267 git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD"