fix(cli): 'Failed to clone package' error

A regression introduced in 8cdddd8.

Fix: #8471
Amend: 8cdddd87d9
This commit is contained in:
Henrik Lissner
2025-08-30 18:33:33 +02:00
parent 7dd66cc3d7
commit 2e508c299d

View File

@@ -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))