Просмотр исходного кода

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

tags/v1.11.5
6543 4 лет назад
Родитель
Сommit
bfc25fcf40
Аккаунт пользователя с таким Email не найден
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      modules/repofiles/content.go

+ 1
- 1
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

Загрузка…
Отмена
Сохранить