diff options
author | 6543 | 2020-04-25 06:54:38 +0200 |
---|---|---|
committer | GitHub | 2020-04-25 01:54:38 -0300 |
commit | bfc25fcf40eede98424f1af8287c603f99f8de87 (patch) | |
tree | 96e94c67cfe3e5324b2a609df1ef332505fa8a2e | |
parent | 4a6765fba2dec636b8d78795bd6f8ee6df867c74 (diff) |
Fix GetContents(): Dont't ignore Executables (#11192) (#11209)
-rw-r--r-- | modules/repofiles/content.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/repofiles/content.go b/modules/repofiles/content.go index aed98c33a..838bfabdc 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 |