libgit2 / libgit2sharp

Git + .NET = ❤
http://libgit2.github.com
MIT License
3.17k stars 886 forks source link

Fetch on Bare are Not Only Changes #2014

Open dyphn1 opened 1 year ago

dyphn1 commented 1 year ago

Recently, I discovered that when I fetch a bare local repo, I often fetch a large number of git objects from remote to local (if there has some changed). However, most of the fetched objects already exist on the local side (not only changes).

This will cause my bare repo size to increase The bigger it is, the more time will be wasted waiting for network transmission

Expected behavior

Fetch only changes objects.

image

Actual behavior

Fetch a lot of object even it's already exists on the local repo. image

0.26.2 Operating system(s) tested;

Windows11, NetFrameWork 4.7.2