diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-15 03:51:04 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-15 03:51:04 +0200 |
commit | bcb49927a3897eadc29960032c70da29e26d6b58 (patch) | |
tree | 60025a0a59d15e49c6027b1bfd5d6fee5d5d2438 /core | |
parent | f6fe29c80d11662a169806dcf413ecdedcb28fa3 (diff) | |
download | go-git-bcb49927a3897eadc29960032c70da29e26d6b58.tar.gz |
Repository.Clone and Remote.Fetch remote, local branches and client: correct header read
Diffstat (limited to 'core')
-rw-r--r-- | core/reference.go | 2 |
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 |