forked from filipg/gonito
Fix public repo in the no-internal-git mode
This commit is contained in:
parent
322609ec0f
commit
d604a84053
@ -78,7 +78,7 @@ getPublicSubmissionBranch = T.pack . (printf "submission-%05d") . fromSqlKey
|
||||
getPublicSubmissionUrl :: RepoScheme -> Text -> Maybe Repo -> Text -> Text
|
||||
getPublicSubmissionUrl SelfHosted repoHost _ bareRepoName = repoHost ++ bareRepoName
|
||||
getPublicSubmissionUrl Branches _ (Just repo) _ = repoUrl repo
|
||||
getPublicSubmissionUrl NoInternalGitServer _ (Just repo) _ = repoUrl repo
|
||||
getPublicSubmissionUrl NoInternalGitServer repoHost _ bareRepoName = repoHost ++ bareRepoName
|
||||
|
||||
getReadOnlySubmissionUrl :: RepoScheme -> Repo -> Text -> Text
|
||||
getReadOnlySubmissionUrl SelfHosted _ bareRepoName = gitReadOnlyServer ++ bareRepoName
|
||||
|
Loading…
Reference in New Issue
Block a user