From 5e73633dbf8a62190611f6eb438a1a2eaaffa919 Mon Sep 17 00:00:00 2001 From: Heiko Voigt Date: Mon, 14 May 2012 18:24:45 +0200 Subject: teach add_submodule_odb() to look for alternates Since we allow to link other object databases when loading a submodules database we should also load possible alternates. Signed-off-by: Heiko Voigt Signed-off-by: Junio C Hamano --- submodule.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'submodule.c') diff --git a/submodule.c b/submodule.c index 9a28060679..b63978a161 100644 --- a/submodule.c +++ b/submodule.c @@ -63,6 +63,9 @@ static int add_submodule_odb(const char *path) alt_odb->name[40] = '\0'; alt_odb->name[41] = '\0'; alt_odb_list = alt_odb; + + /* add possible alternates from the submodule */ + read_info_alternates(objects_directory.buf, 0); prepare_alt_odb(); done: strbuf_release(&objects_directory); -- cgit v1.2.1