From 7589ed990b334a6aebbd4b1a61a397e5505a51fe Mon Sep 17 00:00:00 2001 From: Tom Neuber Date: Sat, 7 Dec 2024 02:55:10 +0100 Subject: [PATCH] fix(git): add authentication option to pull function --- pkg/git/project.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/git/project.go b/pkg/git/project.go index 21d9bb7..a7754b2 100644 --- a/pkg/git/project.go +++ b/pkg/git/project.go @@ -179,6 +179,10 @@ func (p *Project) Pull(ctx context.Context) error { ReferenceName: plumbing.NewBranchReferenceName(p.Branch), } + if p.auth != nil { + pullOpts.Auth = p.auth + } + if p.writer != nil { pullOpts.Progress = p.writer }