Commit Diff


commit - 6322ae439e52def47d663fb644a96236c81ad92d
commit + fddec46f3a57acbaaeb97e07c6c02625a40564aa
blob - fe2e32cfde3f61a36fccce72cc9fcfd32e30488e
blob + f81087df6d6eedf3199a5b3d72cbe68639416bf5
--- lib/repository_admin.c
+++ lib/repository_admin.c
@@ -1219,9 +1219,7 @@ purge_redundant_pack(struct got_repository *repo, cons
 
 		if (fstatat(got_repo_get_fd(repo), path, &sb, 0) ==
 		    -1) {
-			if (errno == ENOENT &&
-			    strcmp(ext[i], ".pack") != 0 &&
-			    strcmp(ext[i], ".idx") != 0)
+			if (errno == ENOENT)
 				continue;
 			return got_error_from_errno2("fstatat", path);
 		}