summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go
index 682dbf65a7..d29df1b24e 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -285,6 +285,8 @@ func (repo *Repository) APIFormat(mode AccessMode) *api.Repository {
FullName: repo.FullName(),
Description: repo.Description,
Private: repo.IsPrivate,
+ Empty: repo.IsBare,
+ Size: int(repo.Size/1024),
Fork: repo.IsFork,
Mirror: repo.IsMirror,
HTMLURL: repo.HTMLURL(),