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 bd1c57d commit fff2e70
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 @@ -78,7 +78,7 @@ shared static this()

GithubRepository.register(ghuser, ghpassword);
BitbucketRepository.register();
if (glurl.length) GitLabRepository.register(glauth, glurl);
if (glurl.length || s_mirror.length) GitLabRepository.register(glauth, glurl);

auto router = new URLRouter;
if (s_mirror.length) router.any("*", (req, res) { req.params["mirror"] = s_mirror; });
Expand Down

0 comments on commit fff2e70

Please sign in to comment.