Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
rev-parse: add --shared-index-path to get shared index path
[gitweb.git]
/
builtin
/
checkout-index.c
diff --git
a/builtin/checkout-index.c
b/builtin/checkout-index.c
index 9e49bf2f5695f0deaf7184ca7e9ef38059e3d680..05edd9e1df52e63a1644cddc0fb0e6a0d764d90b 100644
(file)
--- a/
builtin/checkout-index.c
+++ b/
builtin/checkout-index.c
@@
-135,6
+135,7
@@
static int option_parse_u(const struct option *opt,
int *newfd = opt->value;
state.refresh_cache = 1;
+ state.istate = &the_index;
if (*newfd < 0)
*newfd = hold_locked_index(&lock_file, 1);
return 0;