mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-01 21:29:47 +01:00
Introduce abstraction for repository location
This commit is contained in:
@@ -26,7 +26,7 @@ public class GitRepositoryContextResolver implements RepositoryContextResolver {
|
||||
public RepositoryContext resolve(String[] args) {
|
||||
NamespaceAndName namespaceAndName = extractNamespaceAndName(args);
|
||||
Repository repository = repositoryManager.get(namespaceAndName);
|
||||
Path path = locationResolver.getPath(repository.getId()).resolve("data");
|
||||
Path path = locationResolver.forClass(Path.class).getLocation(repository.getId()).resolve("data");
|
||||
return new RepositoryContext(repository, path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user