]> git.ipfire.org Git - thirdparty/git.git/blobdiff - sha1_name.c
object-store: move alt_odb_list and alt_odb_tail to object store
[thirdparty/git.git] / sha1_name.c
index 434025bf03b4ea919880c8a6f473dd97d464aec1..a22a29cda0503d8a3167abda2d5089c7262c9bda 100644 (file)
@@ -11,6 +11,7 @@
 #include "sha1-array.h"
 #include "packfile.h"
 #include "object-store.h"
+#include "repository.h"
 
 static int get_oid_oneline(const char *, struct object_id *, struct commit_list *);
 
@@ -105,7 +106,7 @@ static void find_short_object_filename(struct disambiguate_state *ds)
                 */
                fakeent = alloc_alt_odb(get_object_directory());
        }
-       fakeent->next = alt_odb_list;
+       fakeent->next = the_repository->objects->alt_odb_list;
 
        for (alt = fakeent; alt && !ds->ambiguous; alt = alt->next) {
                int pos;