mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-04 15:03:42 -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
|
;; indicates a successful clone (causing load
|
||||||
;; errors later).
|
;; errors later).
|
||||||
(let ((try 0))
|
(let ((try 0))
|
||||||
(while (not (or (file-directory-p ".git")
|
(while (not (or (file-directory-p (doom-path repo-dir ".git"))
|
||||||
(file-exists-p ".straight-commit")))
|
(file-exists-p (doom-path repo-dir ".straight-commit"))))
|
||||||
(when (= try 3)
|
(when (= try 3)
|
||||||
(error "Failed to clone package"))
|
(error "Failed to clone package"))
|
||||||
(print! (warn "Failed to clone %S, trying again (attempt #%d)...") package (1+ try))
|
(print! (warn "Failed to clone %S, trying again (attempt #%d)...") package (1+ try))
|
||||||
|
Reference in New Issue
Block a user