diff options
Diffstat (limited to 'services/repository/files')
-rw-r--r-- | services/repository/files/update.go | 1 | ||||
-rw-r--r-- | services/repository/files/upload.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/services/repository/files/update.go b/services/repository/files/update.go index 0e012e16bc..9fb074ed39 100644 --- a/services/repository/files/update.go +++ b/services/repository/files/update.go @@ -353,6 +353,7 @@ func CreateOrUpdateRepoFile(repo *repo_model.Repository, doer *user_model.User, filename2attribute2info, err := t.gitRepo.CheckAttribute(git.CheckAttributeOpts{ Attributes: []string{"filter"}, Filenames: []string{treePath}, + CachedOnly: true, }) if err != nil { return nil, err diff --git a/services/repository/files/upload.go b/services/repository/files/upload.go index 5e9c936113..28ed461fdc 100644 --- a/services/repository/files/upload.go +++ b/services/repository/files/upload.go @@ -97,6 +97,7 @@ func UploadRepoFiles(repo *repo_model.Repository, doer *user_model.User, opts *U filename2attribute2info, err = t.gitRepo.CheckAttribute(git.CheckAttributeOpts{ Attributes: []string{"filter"}, Filenames: names, + CachedOnly: true, }) if err != nil { return err |