mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-20 14:00:04 +02:00
backport #21787
This commit is contained in:
parent
c7770fa502
commit
9819a47717
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ func (repo *Repository) IsReferenceExist(name string) bool {
|
|||
|
||||
// IsBranchExist returns true if given branch exists in current repository.
|
||||
func (repo *Repository) IsBranchExist(name string) bool {
|
||||
if name == "" {
|
||||
if repo == nil || name == "" {
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue