Skip to content

Commit

Permalink
Update Org RepoClient creation to use transport from parent Client (#…
Browse files Browse the repository at this point in the history
…4259)

Signed-off-by: Jeff Mendoza <[email protected]>
  • Loading branch information
jeffmendoza authored Jul 25, 2024
1 parent 57501e5 commit 093669b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clients/githubrepo/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ func (client *Client) GetOrgRepoClient(ctx context.Context) (clients.RepoClient,
return nil, fmt.Errorf("error during MakeGithubRepo: %w", err)
}

logger := log.NewLogger(log.InfoLevel)
c := CreateGithubRepoClient(ctx, logger)
c := CreateGithubRepoClientWithTransport(ctx, client.repoClient.Client().Transport)
if err := c.InitRepo(dotGithubRepo, clients.HeadSHA, 0); err != nil {
return nil, fmt.Errorf("error during InitRepo: %w", err)
}
Expand Down

0 comments on commit 093669b

Please sign in to comment.