diff --git a/server/upstream/gitea.go b/server/upstream/gitea.go index ed97071..75fe4a8 100644 --- a/server/upstream/gitea.go +++ b/server/upstream/gitea.go @@ -64,7 +64,7 @@ func giteaGetRepoDefaultBranch(giteaRoot, repoOwner, repoName, giteaAPIToken str req := fasthttp.AcquireRequest() baseUrl, _ := url.Parse(giteaRoot) - apiPath, _ := baseUrl.Parse(path.Join(giteaRoot, giteaAPIRepos, repoOwner, repoName)) + apiPath, _ := baseUrl.Parse(path.Join(giteaAPIRepos, repoOwner, repoName)) log.Debug().Msgf("giteaGetRepoDefaultBranch: trying path %s", apiPath) req.SetRequestURI(apiPath.String())