diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-10 01:48:43 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-10 01:48:43 +0200 |
commit | 6f1d1e00a7c615209cf6b25e314d033bda3b5d09 (patch) | |
tree | 51492dae8b010a25a2116e5c8cbeadeef1fa3726 /repository.go | |
parent | e013b297b14949aadaec66deaedc130e86c30afb (diff) | |
download | go-git-6f1d1e00a7c615209cf6b25e314d033bda3b5d09.tar.gz |
storage: filesystem ref storage, and not not exists file handling
Diffstat (limited to 'repository.go')
-rw-r--r-- | repository.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/repository.go b/repository.go index 5f5527e..cc76107 100644 --- a/repository.go +++ b/repository.go @@ -345,6 +345,10 @@ func (r *Repository) Ref(name core.ReferenceName, resolved bool) (*core.Referenc // Refs returns a map with all the References func (r *Repository) Refs() core.ReferenceIter { - i, _ := r.s.ReferenceStorage().Iter() + i, err := r.s.ReferenceStorage().Iter() + if err != nil { + panic(err) + } + return i } |