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 --- sha1_file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sha1_file.c') diff --git a/sha1_file.c b/sha1_file.c index 4f06a0e450..f615fc7206 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -228,7 +228,6 @@ char *sha1_pack_index_name(const unsigned char *sha1) struct alternate_object_database *alt_odb_list; static struct alternate_object_database **alt_odb_tail; -static void read_info_alternates(const char * alternates, int depth); static int git_open_noatime(const char *name); /* @@ -353,7 +352,7 @@ static void link_alt_odb_entries(const char *alt, const char *ep, int sep, } } -static void read_info_alternates(const char * relative_base, int depth) +void read_info_alternates(const char * relative_base, int depth) { char *map; size_t mapsz; -- cgit v1.3-5-g9baa