fix(cli): shell-quote-argument: wrong-number-of-args error

shell-quote-argument's second argument was introduced in 29.1. Users on
older versions of Emacs will get an error.

Amend: d5bad5b430
This commit is contained in:
Henrik Lissner 2024-03-27 10:23:54 -04:00
parent b6b755dea4
commit d6a3450917
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -810,10 +810,10 @@ However, in batch mode, print to stdout instead of stderr."
;; explanation.
(defadvice! doom-cli--straight-throw-error-on-no-branch-a (fn &rest args)
:around #'straight--process-log
(letf! ((defun shell-quote-argument (arg &optional posix)
(when (null arg)
(letf! ((defun shell-quote-argument (&rest args)
(unless (car args)
(error "Package was not properly cloned due to a connection failure, please try again later"))
(funcall shell-quote-argument arg posix)))
(apply shell-quote-argument args)))
(apply fn args)))
(defadvice! doom-cli--straight-regurgitate-empty-string-error-a (fn &rest args)