Complain if repo is invalid on 'doom update'

This commit is contained in:
Henrik Lissner 2020-03-01 13:24:17 -05:00
parent 3ecff5777b
commit ca74996d1b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

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