git: propogate failure to locate git binary

Signed-off-by: Justin Chadwell <me@jedevc.com>
pull/2012/head
Justin Chadwell 1 year ago
parent a97e1641a4
commit c47eb3bf5a

@ -49,7 +49,7 @@ func New(opts ...Option) (*Git, error) {
c.gitpath, err = gitPath(c.wd)
if err != nil {
return nil, errors.New("git not found in PATH")
return nil, err
}
return c, nil

Loading…
Cancel
Save