Browse Source

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

tags/v1.11.5
6543 4 years ago
parent
commit
bfc25fcf40
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/repofiles/content.go

+ 1
- 1
modules/repofiles/content.go 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

Loading…
Cancel
Save