summaryrefslogtreecommitdiff
path: root/submodule.c
diff options
context:
space:
mode:
authorPaul Tan <pyokagan@gmail.com>2015-03-24 05:20:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-03-24 15:08:10 (GMT)
commit7e314539d6f3c1e53a826e8a857cef174a023510 (patch)
treea0de7e3a1a68646827dea6afc74b9ae0c6ab0649 /submodule.c
parent44b228985e59966588704eaa7c4ec9832ba0f8ee (diff)
downloadgit-7e314539d6f3c1e53a826e8a857cef174a023510.zip
git-7e314539d6f3c1e53a826e8a857cef174a023510.tar.gz
git-7e314539d6f3c1e53a826e8a857cef174a023510.tar.bz2
t0302: test credential-store support for XDG_CONFIG_HOME
t0302 now tests git-credential-store's support for the XDG user-specific configuration file $XDG_CONFIG_HOME/git/credentials. Specifically: * Ensure that the XDG file is strictly opt-in. It should not be created by git at all times if it does not exist. * Conversely, if the XDG file exists, ~/.git-credentials should not be created at all times. * If both the XDG file and ~/.git-credentials exists, then both files should be used for credential lookups. However, credentials should only be written to ~/.git-credentials. * Credentials must be erased from both files. * $XDG_CONFIG_HOME can be a custom directory set by the user as per the XDG base directory specification. Test that git-credential-store respects that, but defaults to "~/.config/git/credentials" if it does not exist or is empty. Helped-by: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> Helped-by: Junio C Hamano <gitster@pobox.com> Helped-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Paul Tan <pyokagan@gmail.com> Reviewed-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule.c')
0 files changed, 0 insertions, 0 deletions