diff options
| author | 2026-03-08 01:24:12 +0800 | |
|---|---|---|
| committer | 2026-03-08 01:24:12 +0800 | |
| commit | 0b33c05cc2d163032b9c125cae5aaa2a7668c0be (patch) | |
| tree | 3b13495d858a12862c5481298102aaea1c4661ed /cmd | |
| parent | TODO: Add Progress/Error stream note (diff) | |
| signature | No signature | |
cmd/index-pack: Fix Ingest usage
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/index-pack/main.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/index-pack/main.go b/cmd/index-pack/main.go index 6b6404b1..0715fa05 100644 --- a/cmd/index-pack/main.go +++ b/cmd/index-pack/main.go @@ -85,7 +85,12 @@ func run(repoPath, destinationPath, objectFormat string, fixThin, writeRev bool) defer func() { _ = destinationRoot.Close() }() - result, err := ingest.Ingest(os.Stdin, destinationRoot, algo, fixThin, writeRev, base) + result, err := ingest.Ingest(os.Stdin, destinationRoot, algo, ingest.Options{ + FixThin: fixThin, + WriteRev: writeRev, + Base: base, + RequireTrailingEOF: true, + }) if err != nil { return err } |
