[PATCH v2/GSoC 4/4] t0301: test credential-cache support of XDG_RUNTIME_DIR

2016-03-19 Thread Hui Yiqun
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. Signed-off-

Re: [PATCH v2/GSoC 4/4] t0301: test credential-cache support of XDG_RUNTIME_DIR

2016-03-19 Thread Jeff King
On Fri, Mar 18, 2016 at 12:48:46AM +0800, Hui Yiqun wrote: > 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`. > >

Re: [PATCH v2/GSoC 4/4] t0301: test credential-cache support of XDG_RUNTIME_DIR

2016-03-19 Thread 惠轶群
2016-03-18 13:01 GMT+08:00 Jeff King : > On Fri, Mar 18, 2016 at 12:38:16PM +0800, 惠轶群 wrote: > >> >> +test_expect_success 'when $XDG_RUNTIME_DIR is set, >> >> `$XDG_RUNTIME_DIR/git` are used' ' >> >> + test_path_is_missing "/tmp/git-$(id -u)/git/credential-cache.sock" >> >> && >> >> + te

Re: [PATCH v2/GSoC 4/4] t0301: test credential-cache support of XDG_RUNTIME_DIR

2016-03-19 Thread Jeff King
On Fri, Mar 18, 2016 at 12:38:16PM +0800, 惠轶群 wrote: > >> +test_expect_success 'when $XDG_RUNTIME_DIR is set, `$XDG_RUNTIME_DIR/git` > >> are used' ' > >> + test_path_is_missing "/tmp/git-$(id -u)/git/credential-cache.sock" && > >> + test -S "$HOME/xdg_runtime/git/credential-cache.sock" >

Re: [PATCH v2/GSoC 4/4] t0301: test credential-cache support of XDG_RUNTIME_DIR

2016-03-19 Thread 惠轶群
2016-03-18 2:08 GMT+08:00 Jeff King : > On Fri, Mar 18, 2016 at 12:48:46AM +0800, Hui Yiqun wrote: > >> 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