Change-Id: Ib46ea2c0d5039c88b4fc59723135c503a8c950ce Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>tags/v5.4.1.201908211225-r
@@ -1541,8 +1541,9 @@ public abstract class Repository implements AutoCloseable { | |||
!filePath.startsWith(workDirPath)) { | |||
File absWd = workDir.isAbsolute() ? workDir : workDir.getAbsoluteFile(); | |||
File absFile = file.isAbsolute() ? file : file.getAbsoluteFile(); | |||
if (absWd == workDir && absFile == file) | |||
if (absWd.equals(workDir) && absFile.equals(file)) { | |||
return ""; //$NON-NLS-1$ | |||
} | |||
return stripWorkDir(absWd, absFile); | |||
} | |||