Commit e4167f30675206ad458b5533f50da0b695efd3ff

Stefan Sperling 2019-07-27T20:32:39

ignore missing objects/pack dir in match_packed_object()

1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
 	}