Skip to content

Commit

Permalink
Add remote flag to executable-find (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
jado4810 authored Apr 25, 2024
1 parent a36edc0 commit 9afe45b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-gutter.el
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ Argument TEST is the case before BODY execution."
(apply #'process-file cmd nil output nil args))

(defun git-gutter:in-git-repository-p ()
(when (executable-find "git")
(when (executable-find "git" t)
(with-temp-buffer
(when-let ((exec-result (git-gutter:execute-command
"git" t "rev-parse" "--is-inside-work-tree")))
Expand All @@ -257,7 +257,7 @@ Argument TEST is the case before BODY execution."
(looking-at-p "true"))))))

(defun git-gutter:in-repository-common-p (cmd check-subcmd repodir)
(and (executable-find cmd)
(and (executable-find cmd t)
(locate-dominating-file default-directory repodir)
(zerop (apply #'git-gutter:execute-command cmd nil check-subcmd))
(not (string-match-p (regexp-quote (concat "/" repodir "/"))
Expand Down

0 comments on commit 9afe45b

Please sign in to comment.