aboutsummaryrefslogtreecommitdiff
path: root/format/pack/ingest/thin_fix.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-07 23:35:28 +0800
committerGravatar Runxi Yu2026-03-07 23:35:28 +0800
commitb279c7e4dc798b4c8055af8e974edbc8973d4537 (patch)
tree1710e154f86d391a2f6789e37318fa6363d2beec /format/pack/ingest/thin_fix.go
parentinternal/testgit: Add more execution helpers (diff)
signatureNo signature
format/pack/ingest: Use Options; don't require EOF
Diffstat (limited to 'format/pack/ingest/thin_fix.go')
-rw-r--r--format/pack/ingest/thin_fix.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/format/pack/ingest/thin_fix.go b/format/pack/ingest/thin_fix.go
index f21ef98a..cdee8748 100644
--- a/format/pack/ingest/thin_fix.go
+++ b/format/pack/ingest/thin_fix.go
@@ -12,11 +12,11 @@ func maybeFixThin(state *ingestState) error {
return nil
}
- if !state.fixThin {
+ if !state.opts.FixThin {
return &ThinPackUnresolvedError{Count: len(state.unresolvedRefDeltas)}
}
- if state.base == nil {
+ if state.opts.Base == nil {
return &ThinPackUnresolvedError{Count: len(state.unresolvedRefDeltas)}
}
@@ -48,7 +48,7 @@ func maybeFixThin(state *ingestState) error {
baseIDs := unresolvedThinBaseIDs(state)
for _, id := range baseIDs {
- ty, content, err := state.base.ReadBytesContent(id)
+ ty, content, err := state.opts.Base.ReadBytesContent(id)
if err != nil {
continue
}