libgit2sharp icon indicating copy to clipboard operation
libgit2sharp copied to clipboard

Fetch on Bare are Not Only Changes

Open dyphn1 opened this issue 2 years ago • 0 comments

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

dyphn1 avatar Feb 16 '23 05:02 dyphn1