mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-16 10:16:16 +01:00
Store absolute path for directly set repository locations
This commit is contained in:
@@ -78,7 +78,7 @@ public class PathBasedRepositoryLocationResolver extends BasicRepositoryLocation
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setLocation(String repositoryId, T location) {
|
public void setLocation(String repositoryId, T location) {
|
||||||
PathBasedRepositoryLocationResolver.this.setLocation(repositoryId, (Path) location);
|
PathBasedRepositoryLocationResolver.this.setLocation(repositoryId, ((Path) location).toAbsolutePath());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -148,7 +148,7 @@ public class PathBasedRepositoryLocationResolver extends BasicRepositoryLocation
|
|||||||
.resolve(STORE_NAME.concat(StoreConstants.FILE_EXTENSION));
|
.resolve(STORE_NAME.concat(StoreConstants.FILE_EXTENSION));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLocation(String repositoryId, Path repositoryBasePath) {
|
private void setLocation(String repositoryId, Path repositoryBasePath) {
|
||||||
pathById.put(repositoryId, repositoryBasePath);
|
pathById.put(repositoryId, repositoryBasePath);
|
||||||
writePathDatabase();
|
writePathDatabase();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user