Complain if repo is invalid on 'doom update'
This commit is contained in:
parent
3ecff5777b
commit
ca74996d1b
1 changed files with 3 additions and 0 deletions
|
@ -168,6 +168,9 @@ declaration) or dependency thereof that hasn't already been."
|
|||
(unless (file-in-directory-p default-directory repo-dir)
|
||||
(print! (warn "(%d/%d) Skipping %s because it is local") i total package)
|
||||
(cl-return))
|
||||
(when (eq type 'git)
|
||||
(unless (file-exists-p ".git")
|
||||
(error "%S is not a valid repository" package)))
|
||||
(condition-case-unless-debug e
|
||||
(let ((ref (straight-vc-get-commit type local-repo))
|
||||
(target-ref (cdr (assoc local-repo pinned)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue