summaryrefslogtreecommitdiffstats
path: root/modules/repofiles/upload.go
diff options
context:
space:
mode:
authora1012112796 <1012112796@qq.com>2021-03-01 20:14:17 +0800
committerGitHub <noreply@github.com>2021-03-01 14:14:17 +0200
commit6cf97df9fd6aba59104dba41a2eabd64542f68b9 (patch)
treeb372ec58b6315df4e26a01b2d09acc2f6ca52d13 /modules/repofiles/upload.go
parentfaf775c552ae18a9ca55050fedf86908d09dd3f6 (diff)
downloadgitea-6cf97df9fd6aba59104dba41a2eabd64542f68b9.tar.gz
gitea-6cf97df9fd6aba59104dba41a2eabd64542f68b9.zip
remove duplicate define of CheckAttribute() (#14837)
Signed-off-by: a1012112796 <1012112796@qq.com>
Diffstat (limited to 'modules/repofiles/upload.go')
-rw-r--r--modules/repofiles/upload.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/repofiles/upload.go b/modules/repofiles/upload.go
index c261e188c1..2846e6c44b 100644
--- a/modules/repofiles/upload.go
+++ b/modules/repofiles/upload.go
@@ -11,6 +11,7 @@ import (
"strings"
"code.gitea.io/gitea/models"
+ "code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/lfs"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/storage"
@@ -88,7 +89,10 @@ func UploadRepoFiles(repo *models.Repository, doer *models.User, opts *UploadRep
var filename2attribute2info map[string]map[string]string
if setting.LFS.StartServer {
- filename2attribute2info, err = t.CheckAttribute("filter", names...)
+ filename2attribute2info, err = t.gitRepo.CheckAttribute(git.CheckAttributeOpts{
+ Attributes: []string{"filter"},
+ Filenames: names,
+ })
if err != nil {
return err
}