summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Waitz <tali@admingilde.org>2006-05-07 18:19:33 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-05-07 22:41:35 (GMT)
commit0438402271cccc1711c603b0a7ba3134f1ce30f1 (patch)
tree658a16dffcf61a32ae60adc92167cc4ede91cbe5
parentdd05ea1799656024a45017238bbd4857b5256370 (diff)
downloadgit-0438402271cccc1711c603b0a7ba3134f1ce30f1.zip
git-0438402271cccc1711c603b0a7ba3134f1ce30f1.tar.gz
git-0438402271cccc1711c603b0a7ba3134f1ce30f1.tar.bz2
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>
-rwxr-xr-xgit-clone.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/git-clone.sh b/git-clone.sh
index b785247..227245c 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"