We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36cbaec commit 4648584Copy full SHA for 4648584
modules/git/repo_branch_nogogit.go
@@ -52,7 +52,7 @@ func (repo *Repository) IsReferenceExist(name string) bool {
52
53
// IsBranchExist returns true if given branch exists in current repository.
54
func (repo *Repository) IsBranchExist(name string) bool {
55
- if name == "" {
+ if repo == nil || name == "" {
56
return false
57
}
58
modules/git/repo_tag_nogogit.go
@@ -15,7 +15,7 @@ import (
15
16
// IsTagExist returns true if given tag exists in the repository.
17
func (repo *Repository) IsTagExist(name string) bool {
18
19
20
21
0 commit comments