mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Changed to correct default location
https://git-scm.com/docs/git-credential-cache
This commit is contained in:
@ -27,13 +27,13 @@
|
|||||||
(projectile-invalidate-cache nil))
|
(projectile-invalidate-cache nil))
|
||||||
|
|
||||||
;; The default location for git-credential-cache is in
|
;; 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
|
;; it is used instead. Magit seems to be hardcoded to use the latter, so here
|
||||||
;; we override it to have more correct behavior.
|
;; we override it to have more correct behavior.
|
||||||
(unless (file-exists-p "~/.git-credential-cache/")
|
(unless (file-exists-p "~/.git-credential-cache/")
|
||||||
(setq magit-credential-cache-daemon-socket
|
(setq magit-credential-cache-daemon-socket
|
||||||
(doom-glob (or (getenv "XDG_CONFIG_HOME")
|
(doom-glob (or (getenv "XDG_CACHE_HOME")
|
||||||
"~/.config/")
|
"~/.cache/")
|
||||||
"git/credential/socket")))
|
"git/credential/socket")))
|
||||||
|
|
||||||
;; Magit uses `magit-display-buffer-traditional' to display windows, by
|
;; Magit uses `magit-display-buffer-traditional' to display windows, by
|
||||||
|
Reference in New Issue
Block a user