Browse Source

Exposes in API the Repo entity's IsBare property as IsEmpty

Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
pull/4484/head
Guyzmo 8 years ago
parent
commit
cf9fbc5cd5
  1. 1
      models/repo.go

1
models/repo.go

@ -292,6 +292,7 @@ func (repo *Repository) APIFormat(permission *api.Permission) *api.Repository {
FullName: repo.FullName(),
Description: repo.Description,
Private: repo.IsPrivate,
Empty: repo.IsBare,
Fork: repo.IsFork,
Mirror: repo.IsMirror,
HTMLURL: repo.HTMLURL(),

Loading…
Cancel
Save