Commit dfec726b by Vicent Marti

odb: Do not error out if an alternate ODB is missing

parent b641c00e
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment