Browse Source

Merge pull request #2614 from joshfng/add-default-branch-to-repo-payload

Add default branch to repo payload
for-closed-social
Unknwon 8 years ago
parent
commit
364874937e
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      cmd/web.go
  2. +1
    -0
      models/repo.go

+ 1
- 1
cmd/web.go View 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, ">=") {

+ 1
- 0
models/repo.go View File

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

Loading…
Cancel
Save