mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-02 14:53:38 -05:00
fix(cli): 'Failed to clone package' error
A regression introduced in8cdddd8
. Fix: #8471 Amend:8cdddd87d9
This commit is contained in:
@@ -1011,8 +1011,8 @@ Must be run from a magit diff buffer."
|
||||
;; indicates a successful clone (causing load
|
||||
;; errors later).
|
||||
(let ((try 0))
|
||||
(while (not (or (file-directory-p ".git")
|
||||
(file-exists-p ".straight-commit")))
|
||||
(while (not (or (file-directory-p (doom-path repo-dir ".git"))
|
||||
(file-exists-p (doom-path repo-dir ".straight-commit"))))
|
||||
(when (= try 3)
|
||||
(error "Failed to clone package"))
|
||||
(print! (warn "Failed to clone %S, trying again (attempt #%d)...") package (1+ try))
|
||||
|
Reference in New Issue
Block a user