Skip to content

Commit 74e2c7f

Browse files
committed
Remove relative path calculation and test for /userHome
It is unknown why this directory was excluded from the dirty calculation and the check for the empty relative path had the side effect that changes of the project root directory got ignored. Conflicts: src/main/groovy/net/nemerosa/versioning/svn/SVNInfoService.groovy
1 parent aef5d21 commit 74e2c7f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/main/groovy/net/nemerosa/versioning/svn/SVNInfoService.groovy

+1-6
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,7 @@ class SVNInfoService implements SCMInfoService {
8181
if (statuses.empty) return false
8282
// Checks every entry
8383
def dirtyEntry = statuses.find { entry ->
84-
def path = (entry.file.absolutePath - dir.absolutePath)
85-
if (path && !path.startsWith('/userHome')) {
86-
return !(entry.nodeStatus == SVNStatusType.UNCHANGED && entry.propertiesStatus == SVNStatusType.UNCHANGED) && entry.nodeStatus != SVNStatusType.STATUS_EXTERNAL
87-
} else {
88-
return false
89-
}
84+
return !(entry.nodeStatus == SVNStatusType.UNCHANGED && entry.propertiesStatus == SVNStatusType.UNCHANGED) && entry.nodeStatus != SVNStatusType.STATUS_EXTERNAL
9085
}
9186
return dirtyEntry != null
9287
}

0 commit comments

Comments
 (0)