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