mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix void-variable branch error on 'doom upgrade'
This commit is contained in:
@ -47,8 +47,8 @@ following shell commands:
|
||||
process-file-side-effects)
|
||||
(print! (start "Preparing to upgrade Doom Emacs and its packages..."))
|
||||
|
||||
(let ((branch (cdr (doom--sh "git" "symbolic-ref" "HEAD")))
|
||||
(target-remote (format "%s/%s" doom-repo-remote branch)))
|
||||
(let* ((branch (cdr (doom--sh "git" "symbolic-ref" "HEAD")))
|
||||
(target-remote (format "%s/%s" doom-repo-remote branch)))
|
||||
(unless branch
|
||||
(error! (if (file-exists-p! ".git" doom-emacs-dir)
|
||||
"Couldn't find Doom's .git directory. Was Doom cloned properly?"
|
||||
|
Reference in New Issue
Block a user