Explorar el Código

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

tags/v1.11.5
6543 hace 4 años
padre
commit
bfc25fcf40
No account linked to committer's email address
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      modules/repofiles/content.go

+ 1
- 1
modules/repofiles/content.go Ver fichero

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

Cargando…
Cancelar
Guardar