Git clone pulls too much

With git 1.6.4 and below, git clone pulls down the whole repository, not just the objects referenced from the repository heads, which means an extra 150MB or so of data that isn't really usable. See this thread for more details. To circumvent this problem, instead of doing "git clone" do:

mkdir gcc
cd gcc
git init
git remote add origin git://
git config remote.origin.fetch 'refs/heads/*:refs/remotes/origin/*'
git remote update

None: GitMirror/WARNING_1_6_4 (last edited 2010-07-14 20:31:52 by JasonMerrill)