branch: elpa/helm
commit dd92caa2abcb750079b309f01d2a25c1a52faead
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    [To FIXUP] Simplify switches
---
 helm-packages.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/helm-packages.el b/helm-packages.el
index 01b9d3566a..0fc6c3b709 100644
--- a/helm-packages.el
+++ b/helm-packages.el
@@ -309,15 +309,15 @@ PROVIDER can be one of \"melpa\", \"gnu\" or \"nongnu\"."
          (switches (if (string-match "\\`http[s]?://git.sv.gnu.org" url)
                        `("clone" "--single-branch"
                                  "-b" ,(format "externals/%s" package)
-                                 ,fix-url)
-                     `("clone" ,fix-url))))
+                                 ,fix-url ,name)
+                     `("clone" ,fix-url ,name))))
     (cl-assert (not (file-directory-p (expand-file-name name directory)))
                nil (format "Package already exists in %s" directory))
     (with-helm-default-directory directory
       (let (process-connection-type
             (proc (apply #'start-process
                          "git" "*helm packages clone*"
-                         "git" (append switches (list name)))))
+                         "git" switches)))
         (save-selected-window
           (display-buffer (process-buffer proc)
                           '(display-buffer-below-selected

Reply via email to