doom//upgrade: fix void-variable core-file error

This commit is contained in:
Henrik Lissner 2018-05-25 16:15:58 +02:00
parent 5cf899deb4
commit 365201bfcf
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -215,7 +215,7 @@ recompile. Run this whenever you:
"Upgrade Doom to the latest version." "Upgrade Doom to the latest version."
(interactive) (interactive)
(require 'vc-git) (require 'vc-git)
(let ((core-file (expand-file-name "init.el" doom-core-dir)) (let* ((core-file (expand-file-name "init.el" doom-core-dir))
(branch (vc-git--symbolic-ref core-file)) (branch (vc-git--symbolic-ref core-file))
(default-directory doom-emacs-dir)) (default-directory doom-emacs-dir))
(unless (file-exists-p core-file) (unless (file-exists-p core-file)