mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix 'doom upgrade' when doom is a git submodule
This commit is contained in:
@ -50,7 +50,10 @@ 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 (vc-git--symbolic-ref doom-emacs-dir))
|
(let* ((branch
|
||||||
|
(string-trim-right
|
||||||
|
(cdr (doom-call-process "git" "name-rev" "--name-only" "HEAD"))
|
||||||
|
"~[0-9]$"))
|
||||||
(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