1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00

Add default branch to repo payload

This commit is contained in:
Josh Frye 2016-02-12 11:04:46 -05:00
parent 600d8edaca
commit 8662990746
2 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,7 @@ func checkVersion() {
{"gopkg.in/ini.v1", ini.Version, "1.8.4"}, {"gopkg.in/ini.v1", ini.Version, "1.8.4"},
{"gopkg.in/macaron.v1", macaron.Version, "0.8.0"}, {"gopkg.in/macaron.v1", macaron.Version, "0.8.0"},
{"github.com/gogits/git-module", git.Version, "0.2.5"}, {"github.com/gogits/git-module", git.Version, "0.2.5"},
{"github.com/gogits/go-gogs-client", gogs.Version, "0.7.2"}, {"github.com/gogits/go-gogs-client", gogs.Version, "0.7.3"},
} }
for _, c := range checkers { for _, c := range checkers {
if !version.Compare(c.Version(), c.Expected, ">=") { if !version.Compare(c.Version(), c.Expected, ">=") {

View File

@ -415,6 +415,7 @@ func (repo *Repository) ComposePayload() *api.PayloadRepo {
UserName: repo.MustOwner().Name, UserName: repo.MustOwner().Name,
}, },
Private: repo.IsPrivate, Private: repo.IsPrivate,
DefaultBranch: repo.DefaultBranch,
} }
} }