odb: Do not error out if an alternate ODB is missing
diff --git a/src/odb.c b/src/odb.c
index 07e1ea6..7b5e555 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -457,6 +457,9 @@ static int add_default_backends(
inode = 0;
#else
if (p_stat(objects_dir, &st) < 0) {
+ if (as_alternates)
+ return 0;
+
giterr_set(GITERR_ODB, "Failed to load object database in '%s'", objects_dir);
return -1;
}