mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 06:21:11 +00:00 
			
		
		
		
	Fix GetContents(): Dont't ignore Executables (#11192)
* Refactor: dont expose help functions * repofiles GetContents: dont ignore executables * CI.restart()
This commit is contained in:
		
					parent
					
						
							
								812cfd0ad9
							
						
					
				
			
			
				commit
				
					
						4ddfe0d07a
					
				
			
		
					 2 changed files with 8 additions and 8 deletions
				
			
		|  | @ -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 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue