aboutsummaryrefslogtreecommitdiff
path: root/format/packfile/ingest/header.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-29 11:05:46 +0000
committerGravatar Runxi Yu2026-03-29 11:05:46 +0000
commit0109f0903d8e18d110d6b9456f9a1fb4501e62fc (patch)
treef1b95c7c64d79fa0dab0251661600a299d8aefcb /format/packfile/ingest/header.go
parentobject{,/type}: Fix up API shape (diff)
signatureNo signature
object/type, format/packfile: API cleanups
Diffstat (limited to 'format/packfile/ingest/header.go')
-rw-r--r--format/packfile/ingest/header.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/format/packfile/ingest/header.go b/format/packfile/ingest/header.go
index 6a214828..5fae4c41 100644
--- a/format/packfile/ingest/header.go
+++ b/format/packfile/ingest/header.go
@@ -36,7 +36,7 @@ func parseAndValidatePackHeader(hdr [packHeaderSize]byte) (HeaderInfo, error) {
}
version := binary.BigEndian.Uint32(hdr[4:8])
- if !packfile.VersionSupported(version) {
+ if !packfile.SupportedVersion(version) {
return HeaderInfo{}, &InvalidPackHeaderError{
Reason: fmt.Sprintf("unsupported version %d", version),
}