diff --git a/models/repo.go b/models/repo.go index 1b373bb79..025c23f11 100644 --- a/models/repo.go +++ b/models/repo.go @@ -295,6 +295,7 @@ func (repo *Repository) APIFormat(permission *api.Permission) *api.Repository { Empty: repo.IsBare, Size: int(repo.Size/1024), Fork: repo.IsFork, + Parent: repo.BaseRepo, Mirror: repo.IsMirror, HTMLURL: repo.HTMLURL(), SSHURL: cloneLink.SSH,