Browse Source

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

release/v1.11
6543 2 years ago
committed by GitHub
parent
commit
bfc25fcf40
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/repofiles/content.go

2
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

Loading…
Cancel
Save