mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 06:16:58 +00:00
Merge branch 'main' into add-fasthttp-logger
This commit is contained in:
commit
ca66739389
3 changed files with 16 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue