]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/helper/test-write-cache.c
t/helper: stop using `the_index`
[thirdparty/git.git] / t / helper / test-write-cache.c
index f084034d38e0328e0792d096225c31ddd91d74c7..7e3da380a955f55895ab886911aedf8f1f5ec719 100644 (file)
@@ -1,4 +1,3 @@
-#define USE_THE_INDEX_VARIABLE
 #include "test-tool.h"
 #include "lockfile.h"
 #include "read-cache-ll.h"
@@ -16,7 +15,7 @@ int cmd__write_cache(int argc, const char **argv)
        for (i = 0; i < cnt; i++) {
                repo_hold_locked_index(the_repository, &index_lock,
                                       LOCK_DIE_ON_ERROR);
-               if (write_locked_index(&the_index, &index_lock, COMMIT_LOCK))
+               if (write_locked_index(the_repository->index, &index_lock, COMMIT_LOCK))
                        die("unable to write index file");
        }