diff --git a/core/cli/upgrade.el b/core/cli/upgrade.el index 590af2f36..f8067f1df 100644 --- a/core/cli/upgrade.el +++ b/core/cli/upgrade.el @@ -50,7 +50,10 @@ following shell commands: process-file-side-effects) (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))) (unless branch (error! (if (file-exists-p! ".git" doom-emacs-dir)