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 core"
|
||||||
doom-version
|
doom-version
|
||||||
(or (cdr (doom-call-process
|
(or (cdr (doom-call-process
|
||||||
"git" "-C" doom-emacs-dir
|
"git" "-C" (expand-file-name doom-emacs-dir)
|
||||||
"log" "-1" "--format=%D %h %ci"))
|
"log" "-1" "--format=%D %h %ci"))
|
||||||
"n/a"))
|
"n/a"))
|
||||||
;; NOTE This is a placeholder. Our modules will be moved to its own
|
;; 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"
|
||||||
doom-modules-version
|
doom-modules-version
|
||||||
(or (cdr (doom-call-process
|
(or (cdr (doom-call-process
|
||||||
"git" "-C" doom-modules-dir
|
"git" "-C" (expand-file-name doom-modules-dir)
|
||||||
"log" "-1" "--format=%D %h %ci"))
|
"log" "-1" "--format=%D %h %ci"))
|
||||||
"n/a"))))
|
"n/a"))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue