Re: [PATCH/RFC/GSoC 3/3] t0301: test credential-cache support of XDG_RUNTIME_DIR
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 16, 2016, 16:17 UTC
- Message-ID
- <xmqqr3fa5rdi.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <1458122865-29447-3-git-send-email-huiyiqun@gmail.com>
Hui Yiqun <huiyiqun@gmail.com> writes:
Show 7 quoted lines
> t0301 now tests git-credential-cache support for XDG user-specific > runtime file $XDG_RUNTIME_DIR/git/credential.sock. Specifically: > > * if $XDG_RUNTIME_DIR exists, use socket at > `$XDG_RUNTIME_DIR/git/credential-cache.sock`. > > * otherwise, `/tmp/git-$uid/credential-cache.sock` is taken.
Is it better to have the fallback in /tmp, and not in ~/.git-credential-cache/, and why?
Is it because the wish is to always use /tmp/git-$uid/ as a fallback for $XDG_RUNTIME_DIR (as opposed to ~/.git-credential-cache/, which is specific to the credential-cache and would look strange if we used it for other "runtime" things)?
Just being curious, and wanting to see the reasoning behind the design decision the patch series makes in the log message of one of these patches.
Thanks.