fix pages repo default branch detection

This commit is contained in:
crystal 2022-05-21 02:59:53 -06:00 committed by 6543
parent 81c46cc887
commit cde2137df0

View file

@ -38,7 +38,7 @@ func GetBranchTimestamp(giteaClient *gitea.Client, owner, repo, branch string, b
result.Branch = defaultBranch
}
timestamp, err := giteaClient.GiteaGetRepoBranchTimestamp(owner, repo, branch)
timestamp, err := giteaClient.GiteaGetRepoBranchTimestamp(owner, repo, result.Branch)
if err != nil {
return nil
}