rev-parse: add --shared-index-path to get shared index path
[gitweb.git] / builtin / checkout.c
index 944a634bc038fb17439f70d75ec78f035fb6db6f..146ab91476f11c32ba68c086ea6cce8bcbc7a381 100644 (file)
@@ -336,6 +336,7 @@ static int checkout_paths(const struct checkout_opts *opts,
        memset(&state, 0, sizeof(state));
        state.force = 1;
        state.refresh_cache = 1;
+       state.istate = &the_index;
        for (pos = 0; pos < active_nr; pos++) {
                struct cache_entry *ce = active_cache[pos];
                if (ce->ce_flags & CE_MATCHED) {