Skip to content

Commit

Permalink
fix unknown gitlab repos for mirror registries
Browse files Browse the repository at this point in the history
- gitlab authentication is not needed for mirrors
  • Loading branch information
MartinNowak committed Feb 13, 2019
1 parent ef12d2c commit ce38cd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -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; });
Expand Down

0 comments on commit ce38cd8

Please sign in to comment.