aboutsummaryrefslogtreecommitdiffstats
path: root/core/reference.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/reference.go')
-rw-r--r--core/reference.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/reference.go b/core/reference.go
index 3ec95a0..89852da 100644
--- a/core/reference.go
+++ b/core/reference.go
@@ -114,7 +114,7 @@ func (r *Reference) Target() ReferenceName {
// IsBranch check if a reference is a branch
func (r *Reference) IsBranch() bool {
- return strings.HasPrefix(string(r.n), refHeadPrefix)
+ return strings.HasPrefix(string(r.n), refHeadPrefix) || r.n == HEAD
}
// IsNote check if a reference is a note