ignore: make sure we have an xdg path before using it
commit6283a376c47e7ca3327e563143c1ceda39ae25ac
authorMatthieu Moy <Matthieu.Moy@imag.fr>
Tue, 24 Jul 2012 12:26:51 +0000 (24 14:26 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Jul 2012 15:59:07 +0000 (24 08:59 -0700)
tree85ed93767ccc872c1e1fbc45d258478d77ea78ec
parentf0c1c15c41bdcdaf71c69355ac83789466820879
ignore: make sure we have an xdg path before using it

Commit e3ebc35 (config: fix several access(NULL) calls, 2012-07-12) was
fixing access(NULL) calls when trying to access $HOME/.config/git/config,
but missed the ones when trying to access $HOME/.config/git/ignore. Fix
and test this.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c
t/t1306-xdg-files.sh