summaryrefslogtreecommitdiffstats
path: root/routers/api/v1
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-08-15 02:22:13 +0100
committerGitHub <noreply@github.com>2022-08-14 21:22:13 -0400
commit58a4407acb04b329e94e92977b1414feb309d5de (patch)
tree7ad485740f32aadb9dc0463d81a0a426cea731f2 /routers/api/v1
parent7ae297800ebb64638e792a5075ec1bc0d7f23564 (diff)
downloadgitea-58a4407acb04b329e94e92977b1414feb309d5de.tar.gz
gitea-58a4407acb04b329e94e92977b1414feb309d5de.zip
Remove follow from commits by file (#20765)
The use of `--follow` makes getting these commits very slow on large repositories as it results in searching the whole commit tree for a blob. Now as nice as the results of `--follow` are, I am uncertain whether it is really of sufficient importance to keep around. Fix #20764 Signed-off-by: Andrew Thornton <art27@cantab.net> Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'routers/api/v1')
-rw-r--r--routers/api/v1/repo/wiki.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/repo/wiki.go b/routers/api/v1/repo/wiki.go
index a3a5904925..d423bddbbd 100644
--- a/routers/api/v1/repo/wiki.go
+++ b/routers/api/v1/repo/wiki.go
@@ -427,9 +427,9 @@ func ListPageRevisions(ctx *context.APIContext) {
}
// get Commit Count
- commitsHistory, err := wikiRepo.CommitsByFileAndRangeNoFollow("master", pageFilename, page)
+ commitsHistory, err := wikiRepo.CommitsByFileAndRange("master", pageFilename, page)
if err != nil {
- ctx.Error(http.StatusInternalServerError, "CommitsByFileAndRangeNoFollow", err)
+ ctx.Error(http.StatusInternalServerError, "CommitsByFileAndRange", err)
return
}