mirror of
https://github.com/go-gitea/gitea
synced 2024-06-03 03:46:51 +02:00
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) {
|
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
|
return nil
|
||||||
}
|
}
|
||||||
b.Repo, err = repo_model.GetRepositoryByID(ctx, b.RepoID)
|
b.Repo, err = repo_model.GetRepositoryByID(ctx, b.RepoID)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user