From dfec726bbae0e699b78db8f1b63372134c8467a6 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 3 May 2013 23:30:54 +0200 Subject: [PATCH] odb: Do not error out if an alternate ODB is missing --- src/odb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/odb.c b/src/odb.c index 07e1ea6eb..7b5e555a2 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; }