branch: elpa/helm commit 9e778d44c4166bfabb28ddd2f6d560eb3167d7d8 Author: Thierry Volpiatto <thie...@posteo.net> Commit: Thierry Volpiatto <thie...@posteo.net>
Fix previous commit where url is nil --- helm-packages.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm-packages.el b/helm-packages.el index 3f9644c2d4..e1c9b1171c 100644 --- a/helm-packages.el +++ b/helm-packages.el @@ -270,7 +270,7 @@ PROVIDER can be one of \"gnu\" or \"nongnu\"." ;; "https://git.sv.gnu.org/git/emacs/elpa.git" instead of nil which create a ;; redirection to a savannah url and finally make git clone fails as the url ;; is unrelated to package. - (when (string-match "\\`http[s]?://git.sv.gnu.org" url) + (when (and url (string-match "\\`http[s]?://git.sv.gnu.org" url)) (setq url nil)) (if (stringp url) url