diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2020-12-17 14:08:00 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2020-12-17 14:30:42 +0300 |
commit | 6f95abefc38e6ed73977178cca104943ee7e44c6 (patch) | |
tree | d117247b1f8e00aeb03a6f69641cf1a54c3332a5 /internal/git2go | |
parent | b524f3cb34cc2e72d54876b096cae5cf43154729 (diff) |
stats: Fix stop condition when parsing packfile negotiations
When the packfile negotiation parser sees the "done" pktline, then it
should stop parsing as everything that follows is the actual packfile's
contents. We do so, or at least we intend to do so, but in fact the
`break` we have there is ineffective as it breaks the case statement,
not the loop.
Fix this by correctly breaking out of the loop if we've seen a "done"
pktline.
Diffstat (limited to 'internal/git2go')
0 files changed, 0 insertions, 0 deletions