Skip to content

Commit 2d0b615

Browse files
committed
fix the_index references
Signed-off-by: Derrick Stolee <[email protected]>
1 parent c3b46c4 commit 2d0b615

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

builtin/mv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ int cmd_mv(int argc, const char **argv, const char *prefix)
148148
die(_("index file corrupt"));
149149
istate = the_repository->index;
150150

151-
ensure_full_index(&the_index);
151+
ensure_full_index(istate);
152152

153153
source = internal_prefix_pathspec(prefix, argv, argc, 0);
154154
modes = xcalloc(argc, sizeof(enum update_mode));

builtin/rm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ int cmd_rm(int argc, const char **argv, const char *prefix)
295295
istate = the_repository->index;
296296
refresh_index(istate, REFRESH_QUIET|REFRESH_UNMERGED, &pathspec, NULL, NULL);
297297

298-
ensure_full_index(&the_index);
298+
ensure_full_index(istate);
299299

300300
seen = xcalloc(pathspec.nr, 1);
301301

builtin/update-index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)
11041104
cd.nul_term_line = 0;
11051105
cd.read_from_stdin = 0;
11061106

1107-
ensure_full_index(&the_index);
1107+
ensure_full_index(repo->index);
11081108

11091109
/*
11101110
* Custom copy of parse_options() because we want to handle

0 commit comments

Comments
 (0)