diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2025-12-10 21:18:12 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2025-12-10 21:18:12 +0100 |
| commit | a33666881f4dddc35c32f1bd7f4e97da6a69e47e (patch) | |
| tree | 388207ff709fcfa6e10fc46a7705629d83250c37 /lisp | |
| parent | 3fe795e51af33c802dc3f00b91a503955777a002 (diff) | |
magit--early-process-lines: Return nil if executable cannot be found
During compilation some of the executables, which callers use this
function for (including git even), may not be available. We should
not fail in that situation.
Closes #5490.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/magit-git.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el index 2d84758..2fcf41d 100644 --- a/lisp/magit-git.el +++ b/lisp/magit-git.el @@ -98,7 +98,8 @@ this." "Only used to initialize custom options." (let ((process-environment (append magit-git-environment process-environment))) - (apply #'process-lines-ignore-status program args))) + (ignore-error 'file-missing + (apply #'process-lines-ignore-status program args)))) (defvar magit-git-w32-path-hack nil "Alist of (EXE . (PATHENTRY)). |
