mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-12-24 09:19:51 +01:00
Harmonize repository resolution
This commit is contained in:
@@ -63,7 +63,7 @@ public class SvnRepositoryServiceProvider extends RepositoryServiceProvider
|
||||
Repository repository)
|
||||
{
|
||||
this.repository = repository;
|
||||
this.context = new SvnContext(handler.getDirectory(repository));
|
||||
this.context = new SvnContext(handler.getDirectory(repository.getId()));
|
||||
}
|
||||
|
||||
//~--- methods --------------------------------------------------------------
|
||||
|
||||
@@ -292,7 +292,7 @@ public class SvnDAVConfig extends DAVConfig
|
||||
|
||||
if (repository != null)
|
||||
{
|
||||
directory = handler.getDirectory(repository);
|
||||
directory = handler.getDirectory(repository.getId());
|
||||
}
|
||||
|
||||
return directory;
|
||||
|
||||
@@ -115,7 +115,7 @@ public class SvnRepositoryHandlerTest extends SimpleRepositoryHandlerTestBase {
|
||||
repositoryHandler.setConfig(svnConfig);
|
||||
|
||||
initRepository();
|
||||
File path = repositoryHandler.getDirectory(repository);
|
||||
File path = repositoryHandler.getDirectory(repository.getId());
|
||||
assertEquals(repoPath.toString()+File.separator+ AbstractSimpleRepositoryHandler.REPOSITORIES_NATIVE_DIRECTORY, path.getAbsolutePath());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user