diff options
Diffstat (limited to 'storage/filesystem/shallow.go')
-rw-r--r-- | storage/filesystem/shallow.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/filesystem/shallow.go b/storage/filesystem/shallow.go index ec8d20e..107818c 100644 --- a/storage/filesystem/shallow.go +++ b/storage/filesystem/shallow.go @@ -36,7 +36,7 @@ func (s *ShallowStorage) SetShallow(commits []plumbing.Hash) error { // Shallow return the shallow commits reading from shallo file from .git func (s *ShallowStorage) Shallow() ([]plumbing.Hash, error) { f, err := s.dir.Shallow() - if err != nil { + if f == nil || err != nil { return nil, err } |