diff options
Diffstat (limited to 'plumbing/transport/file/client.go')
-rw-r--r-- | plumbing/transport/file/client.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/transport/file/client.go b/plumbing/transport/file/client.go index af4a88b..d229fdd 100644 --- a/plumbing/transport/file/client.go +++ b/plumbing/transport/file/client.go @@ -66,7 +66,7 @@ func prefixExecPath(cmd string) (string, error) { cmd = filepath.Join(execPath, cmd) // Make sure it actually exists. - _, err = os.Stat(cmd) + _, err = exec.LookPath(cmd) if err != nil { return "", err } |