fix(lib): doom/version use canonical filenames
If doom-emacs-dir contains a "~", attempting to call `git -C` will fail with an error like: fatal: cannot change to '~/.config/emacs/': No such file or directory Fix this by canonicalizing the filename.
This commit is contained in:
parent
3e98f11d9b
commit
1d942b4ab6
1 changed files with 2 additions and 2 deletions
|
@ -370,7 +370,7 @@ FILL-COLUMN determines the column at which lines will be broken."
|
|||
"Doom core"
|
||||
doom-version
|
||||
(or (cdr (doom-call-process
|
||||
"git" "-C" doom-emacs-dir
|
||||
"git" "-C" (expand-file-name doom-emacs-dir)
|
||||
"log" "-1" "--format=%D %h %ci"))
|
||||
"n/a"))
|
||||
;; NOTE This is a placeholder. Our modules will be moved to its own
|
||||
|
@ -380,7 +380,7 @@ FILL-COLUMN determines the column at which lines will be broken."
|
|||
"Doom modules"
|
||||
doom-modules-version
|
||||
(or (cdr (doom-call-process
|
||||
"git" "-C" doom-modules-dir
|
||||
"git" "-C" (expand-file-name doom-modules-dir)
|
||||
"log" "-1" "--format=%D %h %ci"))
|
||||
"n/a"))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue