Skip to content
Snippets Groups Projects

gitserver: Improve perf by not specifying git protocol version

Merged Administrator requested to merge core/gitserver-protocol into master

Created by: mrnugget

(@keegancsmith and I just ran into this when trying to find out why visiting the page of a repository was so slow)

The blog post mentioned in the code that's being removed here got an update in December 2018 that specifies:

Previously the example above used the more rarely used "git ls-remote"
command. A recent change to improve the correctness of that command's
output causes it to request more references.

This change causes git ls-remote with protocol.version=2 to be consistently slower than the variant without a protocol specified.

In order to improve performance, we remove the code and use the older protocol for ls-remote.

Merge request reports

Merged by avatar (Jul 5, 2025 4:43am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading