From ce38cd8481181053e732388242edcb728daf214d Mon Sep 17 00:00:00 2001 From: Martin Nowak Date: Wed, 13 Feb 2019 17:51:04 +0100 Subject: [PATCH] fix unknown gitlab repos for mirror registries - gitlab authentication is not needed for mirrors --- source/app.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/app.d b/source/app.d index 82572ddd..58bd332c 100644 --- a/source/app.d +++ b/source/app.d @@ -135,7 +135,7 @@ void main() GithubRepository.register(appConfig.ghuser, appConfig.ghpassword); BitbucketRepository.register(appConfig.bbuser, appConfig.bbpassword); - if (appConfig.glurl.length) GitLabRepository.register(appConfig.glauth, appConfig.glurl); + if (appConfig.glurl.length || s_mirror.length) GitLabRepository.register(appConfig.glauth, appConfig.glurl); auto router = new URLRouter; if (s_mirror.length) router.any("*", (req, res) { req.params["mirror"] = s_mirror; });