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 /builtin/clean.c | |
parent | dir: introduce readdir_skip_dot_and_dotdot() helper (diff) | |
download | tgif-1df046bcff6085f3800088c51e344594f822df57.tar.xz |
Revert "dir: introduce readdir_skip_dot_and_dotdot() helper"
This reverts commit b548f0f1568f6b01e55ca69c24d3cb19489f92aa,
to be replaced with a reworked version.
Diffstat (limited to 'builtin/clean.c')
-rw-r--r-- | builtin/clean.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/clean.c b/builtin/clean.c index a1a5747615..995053b791 100644 --- a/builtin/clean.c +++ b/builtin/clean.c @@ -189,8 +189,10 @@ static int remove_dirs(struct strbuf *path, const char *prefix, int force_flag, strbuf_complete(path, '/'); len = path->len; - while ((e = readdir_skip_dot_and_dotdot(dir)) != NULL) { + while ((e = readdir(dir)) != NULL) { struct stat st; + if (is_dot_or_dotdot(e->d_name)) + continue; strbuf_setlen(path, len); strbuf_addstr(path, e->d_name); |