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 8188cdf commit ee6d512Copy full SHA for ee6d512
modules/git/repo_branch_nogogit.go
@@ -53,7 +53,7 @@ func (repo *Repository) IsReferenceExist(name string) bool {
53
54
// IsBranchExist returns true if given branch exists in current repository.
55
func (repo *Repository) IsBranchExist(name string) bool {
56
- if name == "" {
+ if repo == nil || name == "" {
57
return false
58
}
59
modules/git/repo_tag_nogogit.go
@@ -16,7 +16,7 @@ import (
16
17
// IsTagExist returns true if given tag exists in the repository.
18
func (repo *Repository) IsTagExist(name string) bool {
19
20
21
22
0 commit comments