From 78d8dd3abf557229e15ebba0cf687dbedce4231b Mon Sep 17 00:00:00 2001 From: Bill Rich Date: Fri, 22 Dec 2023 12:11:59 -0800 Subject: [PATCH] Add handlerOpts back (#2258) --- pkg/sources/git/git.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/sources/git/git.go b/pkg/sources/git/git.go index 70249ca65..028bb5d7a 100644 --- a/pkg/sources/git/git.go +++ b/pkg/sources/git/git.go @@ -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 }