We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e654a82 commit 0ae389dCopy full SHA for 0ae389d
src/main/groovy/com/alexvasilkov/vcs/util/GitHelper.groovy
@@ -16,7 +16,7 @@ class GitHelper {
16
if (git != null) {
17
String remoteUrl = getRemoteUrl(git)
18
19
- if (remoteUrl == null || remoteUrl.equals(repo.url)) {
+ if (remoteUrl == null || !remoteUrl.equals(repo.url)) {
20
throw new GradleException("Git cannot update from ${remoteUrl} to ${repo.url}.\n" +
21
"Delete directory '${repo.repoDir}' and try again.")
22
}
0 commit comments