diff options
author | Paulo Gomes <pjbgf@linux.com> | 2023-07-02 12:05:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-02 12:05:17 +0100 |
commit | 99ccca6bc543f88a18df50763d5fc13808e053e4 (patch) | |
tree | bb6716d60d897e2c1c5f485509aca30c3bb73f7e /plumbing/protocol/packp/advrefs_decode.go | |
parent | 4e1b9c8c558bceef1c773022c94afd4d746b7b81 (diff) | |
parent | abe49196b80e367f7cc123a095b32958f8d0470b (diff) | |
download | go-git-99ccca6bc543f88a18df50763d5fc13808e053e4.tar.gz |
Merge pull request #802 from pjbgf/fix-build
plumbing: http, Fix empty repos on Git v2.41+
Diffstat (limited to 'plumbing/protocol/packp/advrefs_decode.go')
-rw-r--r-- | plumbing/protocol/packp/advrefs_decode.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plumbing/protocol/packp/advrefs_decode.go b/plumbing/protocol/packp/advrefs_decode.go index 63bbe5a..f8d26a2 100644 --- a/plumbing/protocol/packp/advrefs_decode.go +++ b/plumbing/protocol/packp/advrefs_decode.go @@ -133,6 +133,7 @@ func decodeFirstHash(p *advRefsDecoder) decoderStateFn { return nil } + // TODO: Use object-format (when available) for hash size. Git 2.41+ if len(p.line) < hashSize { p.error("cannot read hash, pkt-line too short") return nil |