From 09a4364b2197520c3c6bb0fbcac26eed77c3af2f Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 21 Jul 2021 04:37:00 +0200 Subject: Add TestPrepareWikiFileName (#16487) (#16498) * Add TestPrepareWikiFileName * use LsTree as LsFiles is index only * ajust other tests Co-authored-by: Andrew Thornton --- services/wiki/wiki.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/wiki/wiki.go') diff --git a/services/wiki/wiki.go b/services/wiki/wiki.go index 94f36ea2f2..f1632c6bf7 100644 --- a/services/wiki/wiki.go +++ b/services/wiki/wiki.go @@ -88,7 +88,7 @@ func prepareWikiFileName(gitRepo *git.Repository, wikiName string) (bool, string escaped := NameToFilename(wikiName) // Look for both files - filesInIndex, err := gitRepo.LsFiles(unescaped, escaped) + filesInIndex, err := gitRepo.LsTree("master", unescaped, escaped) if err != nil { log.Error("%v", err) return false, escaped, err -- cgit v1.2.3