Re: [PATCH 2/2] tests: test credential-store XDG support

2015-03-03 Thread Matthieu Moy
Paul Tan pyoka...@gmail.com writes: +# Tests for when $XDG_CONFIG_HOME/git/credentials exists but +# ~/.git-credentials does not. As much as possible, put text in the $1 of test_expect_success instead of comments. +rm $HOME/.git-credentials +mkdir -p ${XDG_CONFIG_HOME:-$HOME/.config}/git

[PATCH 2/2] tests: test credential-store XDG support

2015-03-03 Thread Paul Tan
* helper_test store is run for when $XDG_CONFIG_HOME/git/credentials exists and ~/.git-credentials does not and the other way around. * Test that credentials are stored in XDG file if both XDG and HOME files exist. * Test that credentials from XDG file are used if matching credentials are

Re: [PATCH 2/2] tests: test credential-store XDG support

2015-03-03 Thread Junio C Hamano
Paul Tan pyoka...@gmail.com writes: * helper_test store is run for when $XDG_CONFIG_HOME/git/credentials exists and ~/.git-credentials does not and the other way around. * Test that credentials are stored in XDG file if both XDG and HOME files exist. * Test that credentials from XDG file