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.
  • Loading branch information
sodevel committed Aug 31, 2021
1 parent 404ff58 commit 6fdb696
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,7 @@ class SVNInfoService implements SCMInfoService {
static List<SVNStatus> getDirtyStatuses(File dir, SVNClientManager clientManager) {
List<SVNStatus> statuses = getStatus(dir, clientManager)
return statuses.findAll { 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
}
}

Expand Down

0 comments on commit 6fdb696

Please sign in to comment.