diff options
| author | 2026-03-07 23:35:28 +0800 | |
|---|---|---|
| committer | 2026-03-07 23:35:28 +0800 | |
| commit | b279c7e4dc798b4c8055af8e974edbc8973d4537 (patch) | |
| tree | 1710e154f86d391a2f6789e37318fa6363d2beec /format/pack/ingest/thin_fix.go | |
| parent | internal/testgit: Add more execution helpers (diff) | |
| signature | No 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.go | 6 |
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 } |
