tmp-objdir: do not migrate files starting with '.'
authorJeff King <peff@peff.net>
Mon, 3 Oct 2016 20:49:22 +0000 (16:49 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Oct 2016 20:54:02 +0000 (13:54 -0700)
This avoids "." and "..", as we already do, but also leaves
room for index-pack to store extra data in the quarantine
area (e.g., for passing back any analysis to be read by the
pre-receive hook).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tmp-objdir.c
index 780af8e7521bfe98269cb11d32ff0266dc76dea7..64435f23a483dfc40e91437f0689bdfb9ac4b8f8 100644 (file)
@@ -188,7 +188,7 @@ static int read_dir_paths(struct string_list *out, const char *path)
                return -1;
 
        while ((de = readdir(dh)))
-               if (!is_dot_or_dotdot(de->d_name))
+               if (de->d_name[0] != '.')
                        string_list_append(out, de->d_name);
 
        closedir(dh);