fix(PathManager): remove redundant elements from home path
Cleans up the path for the common `--homedir=.` case.
@@ -160,7 +160,7 @@ static PathManager setInstance(PathManager pathManager) {
* @throws IOException Thrown when required directories cannot be accessed.
*/
public void useOverrideHomePath(Path rootPath) throws IOException {
- this.homePath = rootPath.toAbsolutePath();
+ this.homePath = rootPath.toRealPath();
updateDirs();
}
