fix(git): add authentication option to pull function
This commit is contained in:
parent
00d4e46319
commit
7589ed990b
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue