X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=attr.c;h=b52efb55a036be10618d531d66697d7f7220c524;hb=51e383dd08c3d3a389ab4d9780e503a6f49dfc4f;hp=303751f6c2bd4d558cffbb928c636581efb2b310;hpb=ca4effd8bce5e0dfce7ce1425074475c8643b7f0;p=~andy%2Fgit diff --git a/attr.c b/attr.c index 303751f6c..b52efb55a 100644 --- a/attr.c +++ b/attr.c @@ -497,6 +497,7 @@ static int git_attr_system(void) static void bootstrap_attr_stack(void) { struct attr_stack *elem; + char *xdg_attributes_file; if (attr_stack) return; @@ -515,6 +516,10 @@ static void bootstrap_attr_stack(void) } } + if (!git_attributes_file) { + home_config_paths(NULL, &xdg_attributes_file, "attributes"); + git_attributes_file = xdg_attributes_file; + } if (git_attributes_file) { elem = read_attr_from_file(git_attributes_file, 1); if (elem) {