summaryrefslogtreecommitdiffstats
path: root/modules/repofiles
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-04-24 18:20:22 +0200
committerGitHub <noreply@github.com>2020-04-24 19:20:22 +0300
commit4ddfe0d07acd65c25c6a301faf16f175de0e46bf (patch)
treecc8f85f0fd56ee28f555b0c407ca61919a227329 /modules/repofiles
parent812cfd0ad9bb85b13ce77f611b3c80dad371d1ef (diff)
downloadgitea-4ddfe0d07acd65c25c6a301faf16f175de0e46bf.tar.gz
gitea-4ddfe0d07acd65c25c6a301faf16f175de0e46bf.zip
Fix GetContents(): Dont't ignore Executables (#11192)
* Refactor: dont expose help functions * repofiles GetContents: dont ignore executables * CI.restart()
Diffstat (limited to 'modules/repofiles')
-rw-r--r--modules/repofiles/content.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/repofiles/content.go b/modules/repofiles/content.go
index aed98c33a8..838bfabdc6 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