]> source.dussan.org Git - gitea.git/commitdiff
Add default branch to repo payload
authorJosh Frye <joshfng@gmail.com>
Fri, 12 Feb 2016 16:04:46 +0000 (11:04 -0500)
committerJosh Frye <joshfng@gmail.com>
Fri, 12 Feb 2016 16:04:46 +0000 (11:04 -0500)
cmd/web.go
models/repo.go

index 4f627d4d007b9857a7c11a4eab3933361834a477..279703baafd99d9a90fe524b256ccc978fbd8928 100644 (file)
@@ -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, ">=") {
index fec007c9cce430891de1b9b5053a5e20a6b665e7..46b25a017fa5db392547052eee966e63bdb012da 100644 (file)
@@ -415,6 +415,7 @@ func (repo *Repository) ComposePayload() *api.PayloadRepo {
                        UserName: repo.MustOwner().Name,
                },
                Private: repo.IsPrivate,
+               DefaultBranch: repo.DefaultBranch,
        }
 }