Bläddra i källkod

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

tags/v1.11.5
6543 4 år sedan
förälder
incheckning
bfc25fcf40
Inget konto är kopplat till bidragsgivarens mejladress
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      modules/repofiles/content.go

+ 1
- 1
modules/repofiles/content.go Visa fil

@@ -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

Laddar…
Avbryt
Spara