Merge branch 'ee/clean-remove-dirs'
[gitweb.git] / dir.c
diff --git a/dir.c b/dir.c
index 3881f55c71f1745f68a0dcaf5b439e3518b8909d..c00c7e2b73603589ae1e3f49abcd931f4e761850 100644 (file)
--- a/dir.c
+++ b/dir.c
@@ -2174,6 +2174,8 @@ int remove_dir_recursively(struct strbuf *path, int flag)
        return remove_dir_recurse(path, flag, NULL);
 }
 
+static GIT_PATH_FUNC(git_path_info_exclude, "info/exclude")
+
 void setup_standard_excludes(struct dir_struct *dir)
 {
        const char *path;
@@ -2188,7 +2190,7 @@ void setup_standard_excludes(struct dir_struct *dir)
                                         dir->untracked ? &dir->ss_excludes_file : NULL);
 
        /* per repository user preference */
-       path = git_path("info/exclude");
+       path = git_path_info_exclude();
        if (!access_or_warn(path, R_OK, 0))
                add_excludes_from_file_1(dir, path,
                                         dir->untracked ? &dir->ss_info_exclude : NULL);