tmp-objdir: do not migrate files starting with '.'
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>
Jeff King committed
Oct 3, 2016 at 16:49 UTC
62fe0eb4804c297486a1d421a4f893865fcbc911
1 file changed
+1
-1
tmp-objdir.c
+1
-1
@@ -188,7 +188,7 @@ static int read_dir_paths(struct string_list *out, const char *path)
188
return -1;
189
190
while ((de = readdir(dh)))
191
- if (!is_dot_or_dotdot(de->d_name))
191
+ if (de->d_name[0] != '.')
192
string_list_append(out, de->d_name);
193
194
closedir(dh);