mirror of https://github.com/go-gitea/gitea
Update models/git/branch.go
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
b3d6bed21d
commit
4bd9cdba22
|
@ -142,7 +142,7 @@ func (b *Branch) LoadPusher(ctx context.Context) (err error) {
|
|||
}
|
||||
|
||||
func (b *Branch) LoadRepo(ctx context.Context) (err error) {
|
||||
if b.Repo != nil && b.RepoID == 0 {
|
||||
if b.Repo != nil || b.RepoID == 0 {
|
||||
return nil
|
||||
}
|
||||
b.Repo, err = repo_model.GetRepositoryByID(ctx, b.RepoID)
|
||||
|
|
Loading…
Reference in New Issue