From 1d942b4ab6e162e6d3aef52d03f3020bdcce16c8 Mon Sep 17 00:00:00 2001 From: ivanbrennan Date: Mon, 22 Aug 2022 19:40:46 -0400 Subject: [PATCH] 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. --- lisp/lib/debug.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/lib/debug.el b/lisp/lib/debug.el index 669934900..bfc30d0da 100644 --- a/lisp/lib/debug.el +++ b/lisp/lib/debug.el @@ -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"))))