]> git.ipfire.org Git - thirdparty/git.git/blobdiff - dir.c
convert.c: remove an implicit dependency on the_index
[thirdparty/git.git] / dir.c
diff --git a/dir.c b/dir.c
index a1fe57e925f8ceede7780fc2542ade4f55b15bca..29fbbd48c8cfd57c79062fe39e08d426a1bc41d5 100644 (file)
--- a/dir.c
+++ b/dir.c
@@ -281,7 +281,7 @@ static int match_attrs(const char *name, int namelen,
 {
        int i;
 
-       git_check_attr(name, item->attr_check);
+       git_check_attr(&the_index, name, item->attr_check);
        for (i = 0; i < item->attr_match_nr; i++) {
                const char *value;
                int matched;
@@ -2498,7 +2498,7 @@ void setup_standard_excludes(struct dir_struct *dir)
 {
        dir->exclude_per_dir = ".gitignore";
 
-       /* core.excludefile defaulting to $XDG_HOME/git/ignore */
+       /* core.excludesfile defaulting to $XDG_CONFIG_HOME/git/ignore */
        if (!excludes_file)
                excludes_file = xdg_config_home("ignore");
        if (excludes_file && !access_or_warn(excludes_file, R_OK, 0))