mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-17 02:22:52 +02:00
Fix bug
This commit is contained in:
parent
3b3eaec840
commit
f2b1da5392
@ -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,
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user