git-hg icon indicating copy to clipboard operation
git-hg copied to clipboard

stores objects twice, wasting disk space

Open infinity0 opened this issue 8 years ago • 0 comments

git-hg stores the same objects under both .git/objects and .git/hgremote/objects, wasting space by 2x. A workaround is to share objects:

$ du -sh
2.1G	.
$ echo ../hgremote/objects/ >> .git/objects/info/alternates
$ git repack -a -d -l
$ git gc --prune=all
$ du -sh
1.1G	.

infinity0 avatar Nov 11 '17 12:11 infinity0