ignore missing objects/pack dir in match_packed_object()
diff --git a/lib/repository.c b/lib/repository.c
index 89c1db0..8f6a042 100644
--- a/lib/repository.c
+++ b/lib/repository.c
@@ -901,7 +901,8 @@ match_packed_object(struct got_object_id **unique_id,
packdir = opendir(path_packdir);
if (packdir == NULL) {
- err = got_error_from_errno2("opendir", path_packdir);
+ if (errno != ENOENT)
+ err = got_error_from_errno2("opendir", path_packdir);
goto done;
}