mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	@@ -159,7 +159,7 @@ func GetContents(repo *models.Repository, treePath, ref string, forList bool) (*
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Now populate the rest of the ContentsResponse based on entry type
 | 
			
		||||
	if entry.IsRegular() {
 | 
			
		||||
	if entry.IsRegular() || entry.IsExecutable() {
 | 
			
		||||
		contentsResponse.Type = string(ContentTypeRegular)
 | 
			
		||||
		if blobResponse, err := GetBlobBySHA(repo, entry.ID.String()); err != nil {
 | 
			
		||||
			return nil, err
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user