mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Correctly upload LFS files (#18316)
We need to use the cached .gitattributes file for checking if a file should be stored in the lfs. Fix #18297 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user