0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-17 02:22:52 +02:00
This commit is contained in:
Lunny Xiao 2024-12-23 22:30:21 -08:00
parent 3b3eaec840
commit f2b1da5392
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -140,7 +140,7 @@ func GetTreeList(ctx context.Context, repo *repo_model.Repository, treePath stri
// Check that the path given in opts.treePath is valid (not a git path)
cleanTreePath := CleanUploadFileName(treePath)
if cleanTreePath == "" && treePath != "" {
return nil, models.ErrFilenameInvalid{
return nil, ErrFilenameInvalid{
Path: treePath,
}
}