rename "alternate_object_database" to "object_directory"
[gitweb.git] / packfile.c
index f2850a00b58cccfec57335fb8e0500b7b1cba093..d6d511cfd22d2d41444270527993a50badd977a7 100644 (file)
@@ -966,16 +966,16 @@ static void prepare_packed_git_mru(struct repository *r)
 
 static void prepare_packed_git(struct repository *r)
 {
-       struct alternate_object_database *alt;
+       struct object_directory *odb;
 
        if (r->objects->packed_git_initialized)
                return;
        prepare_multi_pack_index_one(r, r->objects->objectdir, 1);
        prepare_packed_git_one(r, r->objects->objectdir, 1);
        prepare_alt_odb(r);
-       for (alt = r->objects->alt_odb_list; alt; alt = alt->next) {
-               prepare_multi_pack_index_one(r, alt->path, 0);
-               prepare_packed_git_one(r, alt->path, 0);
+       for (odb = r->objects->alt_odb_list; odb; odb = odb->next) {
+               prepare_multi_pack_index_one(r, odb->path, 0);
+               prepare_packed_git_one(r, odb->path, 0);
        }
        rearrange_packed_git(r);