Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> writes: > A trivial patch is to just do > > git pack-refs --all --prune > > in the "git-clone.sh" script rather than force people to do it themselves, > but we really probably shouldn't have ever even unpacked them in the first > place. That is kind of stupid, but especially since that thing is written > in shell, it's hard to do anything smarter. It is not just being in shell. Although I do agree that the initial clone is special, I would rather make clone just a thin wrapper to fetch that also happens to perform necessary initial setup. Keeping fetched and updated refs in core and write a packed refs out in one go in git-fetch--tool (and later, git-fetch all in C) would be much simpler if we do not have to worry about existing refs (aka "git clone" special case); I am not sure if packing refs is desirable in general for incremental "git-fetch". - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html