Skip to content

Commit

Permalink
authorize during fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperspencer committed Jan 25, 2024
1 parent acbb331 commit 1f41519
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ func TempClone(repo types.Repo, tempdir string) (*git.Repository, error) {

err = r.Fetch(&git.FetchOptions{
RefSpecs: []config.RefSpec{"refs/*:refs/*"},
Auth: auth,
})
if err == git.NoErrAlreadyUpToDate {
return r, nil
Expand Down

0 comments on commit 1f41519

Please sign in to comment.