diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2025-03-19 11:17:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-19 11:17:19 -0700 |
commit | a9e8ac0fe0084af33a8e2bb0b3d8d3971755276e (patch) | |
tree | 4630eb7fe5eff7d3c7c36bd6e6158cc2da152eaa /routers/api/v1 | |
parent | e25f860735e27ff8f62c6a256bfbda34e8491acb (diff) | |
download | gitea-main.tar.gz gitea-main.zip |
Fix
https://github.com/go-gitea/gitea/pull/33910#pullrequestreview-2688913865
This PR changed the Repositroy interface in `gitrepo` package which
makes it only focus the relative path in the disk and abstract whether
it's a wiki repository or not.
Diffstat (limited to 'routers/api/v1')
-rw-r--r-- | routers/api/v1/repo/wiki.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/wiki.go b/routers/api/v1/repo/wiki.go index 8d73383f76..67dd6c913d 100644 --- a/routers/api/v1/repo/wiki.go +++ b/routers/api/v1/repo/wiki.go @@ -476,7 +476,7 @@ func findEntryForFile(commit *git.Commit, target string) (*git.TreeEntry, error) // findWikiRepoCommit opens the wiki repo and returns the latest commit, writing to context on error. // The caller is responsible for closing the returned repo again func findWikiRepoCommit(ctx *context.APIContext) (*git.Repository, *git.Commit) { - wikiRepo, err := gitrepo.OpenWikiRepository(ctx, ctx.Repo.Repository) + wikiRepo, err := gitrepo.OpenRepository(ctx, ctx.Repo.Repository.WikiStorageRepo()) if err != nil { if git.IsErrNotExist(err) || err.Error() == "no such file or directory" { ctx.APIErrorNotFound(err) |