Skip to content

Commit bfc25fc

Browse files
authored
Fix GetContents(): Dont't ignore Executables (#11192) (#11209)
1 parent 4a6765f commit bfc25fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/repofiles/content.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func GetContents(repo *models.Repository, treePath, ref string, forList bool) (*
159159
}
160160

161161
// Now populate the rest of the ContentsResponse based on entry type
162-
if entry.IsRegular() {
162+
if entry.IsRegular() || entry.IsExecutable() {
163163
contentsResponse.Type = string(ContentTypeRegular)
164164
if blobResponse, err := GetBlobBySHA(repo, entry.ID.String()); err != nil {
165165
return nil, err

0 commit comments

Comments
 (0)