mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-21 10:34:05 +00:00
odb: Do not error out if an alternate ODB is missing
This commit is contained in:
parent
b641c00eeb
commit
dfec726bba
@ -457,6 +457,9 @@ static int add_default_backends(
|
|||||||
inode = 0;
|
inode = 0;
|
||||||
#else
|
#else
|
||||||
if (p_stat(objects_dir, &st) < 0) {
|
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);
|
giterr_set(GITERR_ODB, "Failed to load object database in '%s'", objects_dir);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user