Skip to content

Commit

Permalink
Fix GetContents(): Dont't ignore Executables (go-gitea#11192)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Apr 24, 2020
1 parent 4a6765f commit f3950c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/repofiles/content.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3950c9

Please sign in to comment.