From 74fcd886174a0c986bb6f707cbeeca9267102d47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrik=20Sj=C3=B6lin?= <44264371+ulrik-s@users.noreply.github.com> Date: Mon, 16 Jun 2025 21:13:05 +0200 Subject: [PATCH] fix test_repack_fsck counting of loose objects --- tests/test_repack_fsck.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_repack_fsck.c b/tests/test_repack_fsck.c index 892e0f8..3870bf8 100644 --- a/tests/test_repack_fsck.c +++ b/tests/test_repack_fsck.c @@ -127,6 +127,8 @@ static size_t count_loose_objects(const char *repo) size_t count = 0; struct dirent *ent; while ((ent = readdir(d))) { + if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) + continue; if (strlen(ent->d_name) != 2) continue; char subdir[512];