Fixed problem with origin git repo
We need to use lenient configuration because we don't want to fail fast when auth token is not set. When it is not set, we assume that someone pushes from local and has git auth set up already.
@@ -90,7 +90,7 @@ public class GitOriginPlugin implements Plugin<Project> {
String originUrl = GitAuthPlugin.getGitHubUrl(
conf.getGitHub().getWriteAuthUser(),
originTask.getOriginRepo(),
- conf.getGitHub().getWriteAuthToken()
+ conf.getLenient().getGitHub().getWriteAuthToken()
);
resultHandler.onSuccess(new GitOriginAuth(originUrl, originTask.getOriginRepo()));
