fetch-pack: eliminate spurious error messages
[gitweb.git] / dir.c
diff --git a/dir.c b/dir.c
index ea74048ed33b61f1f6cae2be7d3d8037353181dc..486833986ed4b4e7d05d2086d53b15ec63905dd0 100644 (file)
--- a/dir.c
+++ b/dir.c
@@ -398,7 +398,7 @@ int add_excludes_from_file_to_list(const char *fname,
        fd = open(fname, O_RDONLY);
        if (fd < 0 || fstat(fd, &st) < 0) {
                if (errno != ENOENT)
-                       warning(_("unable to access '%s': %s"), fname, strerror(errno));
+                       warn_on_inaccessible(fname);
                if (0 <= fd)
                        close(fd);
                if (!check_index ||