branch: elpa/magit
commit a33666881f4dddc35c32f1bd7f4e97da6a69e47e
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
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.
---
lisp/magit-git.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index 2d84758c0b8..2fcf41d683c 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)).