|
|
@ -9,7 +9,7 @@ |
|
|
|
;; ----------------------------------------- |
|
|
|
;; ----------------------------------------- |
|
|
|
|
|
|
|
|
|
|
|
;; Elpaca bootstrap |
|
|
|
;; Elpaca bootstrap |
|
|
|
(defvar elpaca-installer-version 0.7) |
|
|
|
(defvar elpaca-installer-version 0.8) |
|
|
|
(defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory)) |
|
|
|
(defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory)) |
|
|
|
(defvar elpaca-builds-directory (expand-file-name "builds/" elpaca-directory)) |
|
|
|
(defvar elpaca-builds-directory (expand-file-name "builds/" elpaca-directory)) |
|
|
|
(defvar elpaca-repos-directory (expand-file-name "repos/" elpaca-directory)) |
|
|
|
(defvar elpaca-repos-directory (expand-file-name "repos/" elpaca-directory)) |
|
|
@ -26,9 +26,9 @@ |
|
|
|
(make-directory repo t) |
|
|
|
(make-directory repo t) |
|
|
|
(when (< emacs-major-version 28) (require 'subr-x)) |
|
|
|
(when (< emacs-major-version 28) (require 'subr-x)) |
|
|
|
(condition-case-unless-debug err |
|
|
|
(condition-case-unless-debug err |
|
|
|
(if-let ((buffer (pop-to-buffer-same-window "*elpaca-bootstrap*")) |
|
|
|
(if-let* ((buffer (pop-to-buffer-same-window "*elpaca-bootstrap*")) |
|
|
|
((zerop (apply #'call-process `("git" nil ,buffer t "clone" |
|
|
|
((zerop (apply #'call-process `("git" nil ,buffer t "clone" |
|
|
|
,@(when-let ((depth (plist-get order :depth))) |
|
|
|
,@(when-let* ((depth (plist-get order :depth))) |
|
|
|
(list (format "--depth=%d" depth) "--no-single-branch")) |
|
|
|
(list (format "--depth=%d" depth) "--no-single-branch")) |
|
|
|
,(plist-get order :repo) ,repo)))) |
|
|
|
,(plist-get order :repo) ,repo)))) |
|
|
|
((zerop (call-process "git" nil buffer t "checkout" |
|
|
|
((zerop (call-process "git" nil buffer t "checkout" |
|
|
|