From c47eb3bf5a470ae88c24be00a96334d6922e91eb Mon Sep 17 00:00:00 2001 From: Justin Chadwell Date: Tue, 22 Aug 2023 12:16:19 +0100 Subject: [PATCH] git: propogate failure to locate git binary Signed-off-by: Justin Chadwell --- util/gitutil/gitutil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/gitutil/gitutil.go b/util/gitutil/gitutil.go index 8ab76ab2..22aa72ee 100644 --- a/util/gitutil/gitutil.go +++ b/util/gitutil/gitutil.go @@ -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