fix 'got fetch' downloading too many objects in some cases
commit726fb9002b2e7771cda3f3d5cc94684cc6369949
authorStefan Sperling <stsp@stsp.name>
Tue, 28 Sep 2021 20:55:16 +0000 (28 20:55 +0000)
committerThomas Adam <thomas@xteddy.org>
Tue, 28 Sep 2021 23:20:09 +0000 (29 00:20 +0100)
tree800202c5c9497653a655a777826474a497f73d08
parentb3dc731fefb8046ff69090a0ccdb97bef71aaf65
fix 'got fetch' downloading too many objects in some cases

Always announce all local references to the server when fetching changes.
We used to do this only in mirror mode. In regular mode only refs/tags
and refs/remotes/origin were announced, which could result in unnecessary
downloads if relevant objects exist in refs/heads or elsewhere.
lib/fetch.c