mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
fix wrong RepositoryNotFoundException in firePostReceiveEvent
This commit is contained in:
@@ -243,7 +243,7 @@ public class XmlRepositoryManager extends AbstractRepositoryManager
|
|||||||
{
|
{
|
||||||
Repository repository = repositoryDB.get(type, name);
|
Repository repository = repositoryDB.get(type, name);
|
||||||
|
|
||||||
if (repository != null)
|
if (repository == null)
|
||||||
{
|
{
|
||||||
throw new RepositoryNotFoundException();
|
throw new RepositoryNotFoundException();
|
||||||
}
|
}
|
||||||
@@ -266,7 +266,7 @@ public class XmlRepositoryManager extends AbstractRepositoryManager
|
|||||||
{
|
{
|
||||||
Repository repository = repositoryDB.get(id);
|
Repository repository = repositoryDB.get(id);
|
||||||
|
|
||||||
if (repository != null)
|
if (repository == null)
|
||||||
{
|
{
|
||||||
throw new RepositoryNotFoundException();
|
throw new RepositoryNotFoundException();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user