mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-19 14:02:13 +01:00
throw ServiceNotEnabledException if git config is not valid
This commit is contained in:
@@ -181,6 +181,15 @@ public class GitRepositoryResolver
|
||||
repository = RepositoryCache.open(FileKey.lenient(gitdir, FS.DETECTED),
|
||||
true);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (logger.isWarnEnabled())
|
||||
{
|
||||
logger.warn("gitconfig is not valid, the service is not available");
|
||||
}
|
||||
|
||||
throw new ServiceNotEnabledException();
|
||||
}
|
||||
}
|
||||
catch (RuntimeException e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user