Skip to content

Commit 0ae389d

Browse files
committed
Fixed issue with git repo url check
1 parent e654a82 commit 0ae389d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/com/alexvasilkov/vcs/util/GitHelper.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class GitHelper {
1616
if (git != null) {
1717
String remoteUrl = getRemoteUrl(git)
1818

19-
if (remoteUrl == null || remoteUrl.equals(repo.url)) {
19+
if (remoteUrl == null || !remoteUrl.equals(repo.url)) {
2020
throw new GradleException("Git cannot update from ${remoteUrl} to ${repo.url}.\n" +
2121
"Delete directory '${repo.repoDir}' and try again.")
2222
}

0 commit comments

Comments
 (0)