summaryrefslogtreecommitdiff
path: root/tmp-objdir.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2016-10-03 16:49:22 -0400
committerJunio C Hamano <gitster@pobox.com>2016-10-10 13:54:02 -0700
commit62fe0eb4804c297486a1d421a4f893865fcbc911 (patch)
tree08f9d44e2bf1230cb3534f390e78f05877799d19 /tmp-objdir.c
parente34c2e010f860117dc7f0f992850dfb77ba48289 (diff)
downloadgit-62fe0eb4804c297486a1d421a4f893865fcbc911.tar.gz
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>
Diffstat (limited to 'tmp-objdir.c')
-rw-r--r--tmp-objdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmp-objdir.c b/tmp-objdir.c
index 780af8e752..64435f23a4 100644
--- a/tmp-objdir.c
+++ b/tmp-objdir.c
@@ -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);