diff options
author | Unknwon <u@gogs.io> | 2016-02-12 16:51:46 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-02-12 16:51:46 -0500 |
commit | 364874937e19bbd84df4fbfb978b509e5f948d37 (patch) | |
tree | 2f41c94ae7e2a7e7df5dc2eeffd637e42c802786 | |
parent | 10e4887b2bf2e201c7acc38f09731a218ae1a7bc (diff) | |
parent | 8662990746ba77633e96a9cad7258fb3d7009678 (diff) | |
download | gitea-364874937e19bbd84df4fbfb978b509e5f948d37.tar.gz gitea-364874937e19bbd84df4fbfb978b509e5f948d37.zip |
Merge pull request #2614 from joshfng/add-default-branch-to-repo-payload
Add default branch to repo payload
-rw-r--r-- | cmd/web.go | 2 | ||||
-rw-r--r-- | models/repo.go | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go index 4f627d4d00..279703baaf 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -90,7 +90,7 @@ func checkVersion() { {"gopkg.in/ini.v1", ini.Version, "1.8.4"}, {"gopkg.in/macaron.v1", macaron.Version, "0.8.0"}, {"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 { if !version.Compare(c.Version(), c.Expected, ">=") { diff --git a/models/repo.go b/models/repo.go index fec007c9cc..46b25a017f 100644 --- a/models/repo.go +++ b/models/repo.go @@ -415,6 +415,7 @@ func (repo *Repository) ComposePayload() *api.PayloadRepo { UserName: repo.MustOwner().Name, }, Private: repo.IsPrivate, + DefaultBranch: repo.DefaultBranch, } } |