Skip to content

Commit

Permalink
Remove relative path calculation and test for /userHome
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sodevel committed Jul 28, 2021
1 parent aef5d21 commit 74e2c7f
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,7 @@ class SVNInfoService implements SCMInfoService {
if (statuses.empty) return false
// Checks every entry
def dirtyEntry = statuses.find { entry ->
def path = (entry.file.absolutePath - dir.absolutePath)
if (path && !path.startsWith('/userHome')) {
return !(entry.nodeStatus == SVNStatusType.UNCHANGED && entry.propertiesStatus == SVNStatusType.UNCHANGED) && entry.nodeStatus != SVNStatusType.STATUS_EXTERNAL
} else {
return false
}
return !(entry.nodeStatus == SVNStatusType.UNCHANGED && entry.propertiesStatus == SVNStatusType.UNCHANGED) && entry.nodeStatus != SVNStatusType.STATUS_EXTERNAL
}
return dirtyEntry != null
}
Expand Down

0 comments on commit 74e2c7f

Please sign in to comment.