Re: [GSoC] Move ~/.git-credential-cache to ~/.cache/git
- From
Noam Postavsky <npostavs@users.sourceforge.net>
- Date
- Mar 11, 2017, 01:02 UTC
- Message-ID
- <CAM-tV-9DV=XOVSehEfd2LiWYdubhwV7fC8uRnKqmFT_aTQ1OKg@mail.gmail.com>
- In-Reply-To
- <20170311002615.GG26789@aiede.mtv.corp.google.com>
On Fri, Mar 10, 2017 at 7:26 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 7 quoted lines
> I find that magit does rely on the socket path. > > Start credential daemon on magit-credential-hook > > If we let git start the daemon, Emacs will send a SIGHUP when git > finishes and closes the pty, killing the daemon. Hence the need to have > our own daemon running first.
Magit doesn't really care about the particular path, but it does call git-credential-cache--daemon directly which needs to be told where to create the socket. I guess Magit could just default to using ~/.cache/git/socket if ~/.cache/git exists? (Magit users can override the path regardless)