Merge pull request #2173 from adbrown101/develop
tools/magit: fix git-credential-cache location
This commit is contained in:
commit
833a29f0b3
1 changed files with 3 additions and 3 deletions
|
@ -27,13 +27,13 @@
|
|||
(projectile-invalidate-cache nil))
|
||||
|
||||
;; The default location for git-credential-cache is in
|
||||
;; ~/.config/git/credential. However, if ~/.git-credential-cache/ exists, then
|
||||
;; ~/.cache/git/credential. However, if ~/.git-credential-cache/ exists, then
|
||||
;; it is used instead. Magit seems to be hardcoded to use the latter, so here
|
||||
;; we override it to have more correct behavior.
|
||||
(unless (file-exists-p "~/.git-credential-cache/")
|
||||
(setq magit-credential-cache-daemon-socket
|
||||
(doom-glob (or (getenv "XDG_CONFIG_HOME")
|
||||
"~/.config/")
|
||||
(doom-glob (or (getenv "XDG_CACHE_HOME")
|
||||
"~/.cache/")
|
||||
"git/credential/socket")))
|
||||
|
||||
;; Magit uses `magit-display-buffer-traditional' to display windows, by
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue