Skip to content
Permalink
Browse files

gitcache: check unchecked errors

  • Loading branch information
shawnps committed Aug 30, 2019
1 parent 30b1f03 commit 0cbfd9c1c7bb4ba50cd5c98cf06ba4d01155667d
Showing with 7 additions and 0 deletions.
  1. +7 −0 gitcache/gitcache.go
@@ -82,6 +82,9 @@ func NewGitCache(url string, auth transport.AuthMethod, dir string) (*GitCache,
}

err = w.Pull(&git.PullOptions{RemoteName: "origin"})
if err != nil {
return nil, err
}
}

ref, err := gc.repo.Head()
@@ -167,6 +170,10 @@ func (g GitCache) commit(ctx context.Context, name, verb string) error {
},
})

if err != nil {
return err
}

fmt.Println(status)
obj, err := g.repo.CommitObject(co)
if err != nil {

0 comments on commit 0cbfd9c

Please sign in to comment.
You can’t perform that action at this time.