diff options
Diffstat (limited to 'modules/repofiles/update.go')
-rw-r--r-- | modules/repofiles/update.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/repofiles/update.go b/modules/repofiles/update.go index 0ee1ada34c..d25e109b29 100644 --- a/modules/repofiles/update.go +++ b/modules/repofiles/update.go @@ -377,7 +377,10 @@ func CreateOrUpdateRepoFile(repo *models.Repository, doer *models.User, opts *Up if setting.LFS.StartServer { // Check there is no way this can return multiple infos - filename2attribute2info, err := t.CheckAttribute("filter", treePath) + filename2attribute2info, err := t.gitRepo.CheckAttribute(git.CheckAttributeOpts{ + Attributes: []string{"filter"}, + Filenames: []string{treePath}, + }) if err != nil { return nil, err } |