aboutsummaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-07-25 15:47:04 -0700
committerJunio C Hamano <gitster@pobox.com>2012-07-25 15:47:05 -0700
commit0d94427ef8442c6b798e60478dfc3e3d3ab16190 (patch)
treeae0747ff11076c45182144c59d6a7c87a8aca6fb /dir.c
parent7b9f29c40f52084c4e3abf7d2a4212c15aa63ae6 (diff)
parent22ae029a1e0631570a2db5d030e5755f9be96eee (diff)
downloadgit-0d94427ef8442c6b798e60478dfc3e3d3ab16190.tar.gz
git-0d94427ef8442c6b798e60478dfc3e3d3ab16190.tar.xz
Merge branch 'mm/config-xdg'
Finishing touches to the XDG support (new feature for 1.7.12) and tests. * mm/config-xdg: t1306: check that XDG_CONFIG_HOME works ignore: make sure we have an xdg path before using it attr: make sure we have an xdg path before using it test-lib.sh: unset XDG_CONFIG_HOME
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index a772c6dc6..240bf0c49 100644
--- a/dir.c
+++ b/dir.c
@@ -1313,7 +1313,7 @@ void setup_standard_excludes(struct dir_struct *dir)
}
if (!access(path, R_OK))
add_excludes_from_file(dir, path);
- if (!access(excludes_file, R_OK))
+ if (excludes_file && !access(excludes_file, R_OK))
add_excludes_from_file(dir, excludes_file);
}