Sfoglia il codice sorgente

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

tags/v1.11.5
6543 4 anni fa
parent
commit
bfc25fcf40
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      modules/repofiles/content.go

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