Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
preload-index.c: use the right index instead of the_index
[gitweb.git]
/
builtin
/
checkout.c
diff --git
a/builtin/checkout.c
b/builtin/checkout.c
index 516136a23a3d6962703186ca825e416cb653e677..54acb8d268e04580a45a466595360d38fc19a168 100644
(file)
--- a/
builtin/checkout.c
+++ b/
builtin/checkout.c
@@
-318,7
+318,7
@@
static int checkout_paths(const struct checkout_opts *opts,
* match_pathspec() for _all_ entries when
* opts->source_tree != NULL.
*/
- if (ce_path_match(ce, &opts->pathspec, ps_matched))
+ if (ce_path_match(
&the_index,
ce, &opts->pathspec, ps_matched))
ce->ce_flags |= CE_MATCHED;
}