Set credentials provider when calling fetch

This commit is contained in:
Ryan Baxter
2024-02-15 11:15:05 -05:00
parent 91d97d1f5b
commit eb0819de94

View File

@@ -436,7 +436,7 @@ class GitRepo {
Git git = this.gitFactory.open(projectDir);
FetchCommand command = git.fetch();
try {
return command.call();
return command.setCredentialsProvider(gitFactory.provider).call();
}
catch (GitAPIException e) {
deleteBaseDirIfExists();