]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/cat-file.c
The fifth batch
[thirdparty/git.git] / builtin / cat-file.c
index 0c948f40fb073cf15a7ec9f5bea661c7ec955124..43a1d7ac4989a22023d7060baa9ae880d1dd7c9a 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (C) Linus Torvalds, 2005
  */
-#define USE_THE_INDEX_VARIABLE
+
 #include "builtin.h"
 #include "config.h"
 #include "convert.h"
@@ -77,7 +77,7 @@ static int filter_object(const char *path, unsigned mode,
                struct checkout_metadata meta;
 
                init_checkout_metadata(&meta, NULL, NULL, oid);
-               if (convert_to_working_tree(&the_index, path, *buf, *size, &strbuf, &meta)) {
+               if (convert_to_working_tree(the_repository->index, path, *buf, *size, &strbuf, &meta)) {
                        free(*buf);
                        *size = strbuf.len;
                        *buf = strbuf_detach(&strbuf, NULL);