defaultPagesBranch

This commit is contained in:
6543 2022-11-12 21:13:13 +01:00
parent aa90356f0a
commit c827a28dd8
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE

View file

@ -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")