Skip to content

Commit

Permalink
Add handlerOpts back (#2258)
Browse files Browse the repository at this point in the history
  • Loading branch information
bill-rich committed Dec 22, 2023
1 parent ceff786 commit 78d8dd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/sources/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 78d8dd3

Please sign in to comment.