Fix void-variable branch error on 'doom upgrade'
This commit is contained in:
parent
71d3eccec5
commit
c28fff4fbf
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ 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")))
|
||||
(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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue