From 9b1c433b6394ea48527fceb49a7783a99f3a1762 Mon Sep 17 00:00:00 2001 From: Guyzmo Date: Fri, 5 May 2017 21:50:06 +0200 Subject: [PATCH] Added BaseRepo property to the repo API as parent Signed-off-by: Guyzmo --- models/repo.go | 1 + 1 file changed, 1 insertion(+) 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,