Merge branch 'main' into add-fasthttp-logger

This commit is contained in:
Gusted 2022-07-09 06:04:08 +02:00
commit ca66739389
3 changed files with 16 additions and 1 deletions

View file

@ -89,6 +89,10 @@ func Handler(mainDomainSuffix, rawDomain []byte,
return false
}
// Replace "~" to "/" so we can access branch that contains slash character
// Branch name cannot contain "~" so doing this is okay
branch = strings.ReplaceAll(branch, "~", "/")
// Check if the branch exists, otherwise treat it as a file path
branchTimestampResult := upstream.GetBranchTimestamp(giteaClient, targetOwner, repo, branch, branchTimestampCache)
if branchTimestampResult == nil {