mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-18 10:29:43 +00:00
defaultPagesBranch
This commit is contained in:
parent
aa90356f0a
commit
c827a28dd8
1 changed files with 2 additions and 1 deletions
|
@ -16,6 +16,7 @@ import (
|
|||
)
|
||||
|
||||
const defaultPagesRepo = "pages"
|
||||
const defaultPagesBranch = "pages"
|
||||
|
||||
func handleSubDomain(log zerolog.Logger, ctx *context.Context, giteaClient *gitea.Client,
|
||||
mainDomainSuffix string,
|
||||
|
@ -92,7 +93,7 @@ func handleSubDomain(log zerolog.Logger, ctx *context.Context, giteaClient *gite
|
|||
TryIndexPages: true,
|
||||
TargetOwner: targetOwner,
|
||||
TargetRepo: pathElements[0],
|
||||
TargetBranch: defaultPagesRepo,
|
||||
TargetBranch: defaultPagesBranch,
|
||||
TargetPath: path.Join(pathElements[1:]...),
|
||||
}, false); works {
|
||||
log.Debug().Msg("tryBranch, now trying upstream 5")
|
||||
|
|
Loading…
Reference in a new issue