File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 21
21
#include "resolve-undo.h"
22
22
#include "submodule-config.h"
23
23
#include "submodule.h"
24
+ #include "fscache.h"
24
25
25
26
static const char * const checkout_usage [] = {
26
27
N_ ("git checkout [<options>] <branch>" ),
@@ -360,6 +361,7 @@ static int checkout_paths(const struct checkout_opts *opts,
360
361
state .istate = & the_index ;
361
362
362
363
enable_delayed_checkout (& state );
364
+ enable_fscache (1 );
363
365
for (pos = 0 ; pos < active_nr ; pos ++ ) {
364
366
struct cache_entry * ce = active_cache [pos ];
365
367
if (ce -> ce_flags & CE_MATCHED ) {
@@ -374,6 +376,7 @@ static int checkout_paths(const struct checkout_opts *opts,
374
376
pos = skip_same_name (ce , pos ) - 1 ;
375
377
}
376
378
}
379
+ enable_fscache (0 );
377
380
errs |= finish_delayed_checkout (& state );
378
381
379
382
if (write_locked_index (& the_index , lock_file , COMMIT_LOCK ))
You can’t perform that action at this time.
0 commit comments