git: propogate failure to locate git binary

Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
Justin Chadwell 2023-08-22 12:16:19 +01:00
parent a97e1641a4
commit c47eb3bf5a
1 changed files with 1 additions and 1 deletions

View File

@ -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