Summary: I'm using git clone with --reference to a repository which has all the appropriate files but not the commits and I'm expecting it to save network bandwidth and disk space. It doesn't.
I'm converting a repository from SVN. I've done a
cd DIR1; git svn clone $REPO
I then set up subgit (very nice, BTW) for $REPO. Subgit creates completely different commits because the commit messages are different but the files are all the same.
I then do a:
git clone --reference DIR1 $SUBGITREPO DIR2
I'm expecting it to fetch all the commit objects but reference the files and directories from DIR1. It doesn't do that -- it transfers the full files into DIR2.
After checkout I have used git ls-tree to verify that yes, the SHA1 of the files are the same in DIR1 and DIR2.
So, why isn't git doing what I expect, and how can I make it do so?
It's not that big of a deal for me to just make a new clone, but folks across the Pacific would love to have some network savings...
TIA