Fix GetContents(): Dont't ignore Executables (#11192) (#11209)

This commit is contained in:
6543 authored and GitHub committed 2020-04-25 01:54:38 -03:00
1 parent 4a6765fba2
commit bfc25fcf40
1 file changed
+1 -1
+1 -1
View File
@@ -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