diff options
author | Alexander Block <ablock84@gmail.com> | 2024-04-02 11:31:17 +0200 |
---|---|---|
committer | Alexander Block <ablock84@gmail.com> | 2024-04-05 23:35:33 +0200 |
commit | 7bd40f548987b3f0ce544902b9c4fbdf8d310882 (patch) | |
tree | aa205a898b67f9a6a65267faff42d65e2d234cb1 /plumbing/format/idxfile/encoder.go | |
parent | 7a9304e5a194f193cf413507fa1682ea97cc5216 (diff) | |
download | go-git-7bd40f548987b3f0ce544902b9c4fbdf8d310882.tar.gz |
plumbing: Properly detect EOF when reading index extensions
Before this, go-git was relying on the peeked header to not include a valid
4 char string header. While doing this, it did not differentiate between
the errournously read final hash and an unknown extension.
This made it impossible to properly skip unknown optional extensions while
detecting EOF early enough.
Diffstat (limited to 'plumbing/format/idxfile/encoder.go')
0 files changed, 0 insertions, 0 deletions