mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-06 04:09:37 +00:00
Only use user-site-lisp-directory if defined
This commit is contained in:
parent
89a844fd9c
commit
fe7997d2b7
1 changed files with 3 additions and 1 deletions
|
@ -296,7 +296,9 @@
|
|||
(let* ((pkg-name (plist-get args :name))
|
||||
(git-config (expand-file-name
|
||||
(concat pkg-name "/.git/config")
|
||||
user-site-lisp-directory)))
|
||||
(if (boundp 'user-site-lisp-directory)
|
||||
user-site-lisp-directory
|
||||
user-emacs-directory))))
|
||||
|
||||
(catch 'found
|
||||
;; Look for a readable .git/config with at least one defined remote.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue