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 <hvoigt@hvoigt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
d0f1ea6003
commit
5e73633dbf
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user