Browse Source

Added BaseRepo property to the repo API as parent

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

1
models/repo.go

@ -295,6 +295,7 @@ func (repo *Repository) APIFormat(permission *api.Permission) *api.Repository {
Empty: repo.IsBare, Empty: repo.IsBare,
Size: int(repo.Size/1024), Size: int(repo.Size/1024),
Fork: repo.IsFork, Fork: repo.IsFork,
Parent: repo.BaseRepo,
Mirror: repo.IsMirror, Mirror: repo.IsMirror,
HTMLURL: repo.HTMLURL(), HTMLURL: repo.HTMLURL(),
SSHURL: cloneLink.SSH, SSHURL: cloneLink.SSH,

Loading…
Cancel
Save