diff options
Diffstat (limited to 'packfile.c')
| -rw-r--r-- | packfile.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packfile.c b/packfile.c index 463d61c877..ea29f4ba77 100644 --- a/packfile.c +++ b/packfile.c @@ -813,7 +813,10 @@ void for_each_file_in_pack_dir(const char *objdir, } strbuf_addch(&path, '/'); dirnamelen = path.len; - while ((de = readdir_skip_dot_and_dotdot(dir)) != NULL) { + while ((de = readdir(dir)) != NULL) { + if (is_dot_or_dotdot(de->d_name)) + continue; + strbuf_setlen(&path, dirnamelen); strbuf_addstr(&path, de->d_name); |
