Skip to content

Commit

Permalink
fix: avoid log message if git is not found on path
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanholsteijn committed Nov 9, 2021
1 parent 7f1c060 commit 7c01aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
func getCredentialHelper(url *neturl.URL) string {
git, err := exec.LookPath("git")
if err != nil {
if err != exec.ErrNotFound {
if lookupError, ok := err.(*exec.Error); !ok || lookupError.Err != exec.ErrNotFound {
log.Printf("ERROR: failed to lookup git on path, %s", err)
}
return ""
Expand Down

0 comments on commit 7c01aeb

Please sign in to comment.