mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 10:41:06 +01:00
Remove hooks for internal repository id
This commit is contained in:
@@ -184,10 +184,10 @@ public class XmlRepositoryDAO
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIdForDirectory(File path) {
|
||||
public Repository getRepositoryForDirectory(File path) {
|
||||
for (RepositoryPath p : db.getPaths()) {
|
||||
if (toRealPath(path.toPath()).startsWith(toRealPath(context.getBaseDirectory().toPath().resolve(p.getPath())))) {
|
||||
return p.getId();
|
||||
return p.getRepository();
|
||||
}
|
||||
}
|
||||
throw new NotFoundException("directory", path.getPath());
|
||||
|
||||
Reference in New Issue
Block a user