diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-05-27 13:59:39 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-05-27 14:02:37 +0900 |
commit | 1df046bcff6085f3800088c51e344594f822df57 (patch) | |
tree | 1bb0c3c0aca95201393debdba3b58602f1167027 /object-file.c | |
parent | b548f0f1568f6b01e55ca69c24d3cb19489f92aa (diff) |
Revert "dir: introduce readdir_skip_dot_and_dotdot() helper"
This reverts commit b548f0f1568f6b01e55ca69c24d3cb19489f92aa,
to be replaced with a reworked version.
Diffstat (limited to 'object-file.c')
-rw-r--r-- | object-file.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/object-file.c b/object-file.c index 77bdcfd21b..624af408cd 100644 --- a/object-file.c +++ b/object-file.c @@ -2304,8 +2304,10 @@ int for_each_file_in_obj_subdir(unsigned int subdir_nr, strbuf_addch(path, '/'); baselen = path->len; - while ((de = readdir_skip_dot_and_dotdot(dir))) { + while ((de = readdir(dir))) { size_t namelen; + if (is_dot_or_dotdot(de->d_name)) + continue; namelen = strlen(de->d_name); strbuf_setlen(path, baselen); |