Skip to content

Commit 62fe0eb

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e34c2e0 commit 62fe0eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tmp-objdir.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ static int read_dir_paths(struct string_list *out, const char *path)
188188
return -1;
189189

190190
while ((de = readdir(dh)))
191-
if (!is_dot_or_dotdot(de->d_name))
191+
if (de->d_name[0] != '.')
192192
string_list_append(out, de->d_name);
193193

194194
closedir(dh);

0 commit comments

Comments
 (0)