Fix mistake in generating public links in open submissions

This commit is contained in:
Filip Gralinski 2021-10-01 16:04:28 +02:00
parent 9ab000646d
commit 512bf3559e

View File

@ -93,8 +93,8 @@ getReadOnlySubmissionUrl NoInternalGitServer repoHost _ bareRepoName = publicRep
browsableGitRepoBranch :: RepoScheme -> Text -> Repo -> Text -> Text -> Text
browsableGitRepoBranch SelfHosted _ _ bareRepoName branch = (browsableGitRepo bareRepoName) ++ "/" ++ branch ++ "/"
browsableGitRepoBranch Branches _ repo _ branch = sshToHttps (repoUrl repo) branch
browsableGitRepoBranch NoInternalGitServer repoHost repo _ branch
= sshToHttps (getPublicSubmissionUrl NoInternalGitServer repoHost (Just repo) branch)
browsableGitRepoBranch NoInternalGitServer repoHost repo bareRepoName branch
= sshToHttps (getPublicSubmissionUrl NoInternalGitServer repoHost (Just repo) bareRepoName)
branch
sshToHttps :: Text -> Text -> Text