Add handlerOpts back (#2258)

This commit is contained in:
Bill Rich 2023-12-22 12:11:59 -08:00 committed by GitHub
parent ceff786db4
commit 78d8dd3abf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1014,6 +1014,8 @@ func (s *Git) handleBinary(ctx context.Context, gitDir string, reporter sources.
return nil
}
var handlerOpts []handlers.Option
if s.skipArchives {
handlerOpts = append(handlerOpts, handlers.WithSkipArchives(true))
}
@ -1053,7 +1055,7 @@ func (s *Git) handleBinary(ctx context.Context, gitDir string, reporter sources.
}
defer reader.Close()
if handlers.HandleFile(fileCtx, reader, chunkSkel, reporter) {
if handlers.HandleFile(fileCtx, reader, chunkSkel, reporter, handlerOpts...) {
return nil
}