summaryrefslogtreecommitdiffstats
path: root/modules/repofiles/content.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/repofiles/content.go')
-rw-r--r--modules/repofiles/content.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/repofiles/content.go b/modules/repofiles/content.go
index aed98c33a8..838bfabdc6 100644
--- a/modules/repofiles/content.go
+++ b/modules/repofiles/content.go
@@ -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