diff --git a/builtin/add.c b/builtin/add.c index 7e9b39f06fe9d3..d337ce83e0bc15 100644 --- a/builtin/add.c +++ b/builtin/add.c @@ -542,6 +542,7 @@ int cmd_add(int argc, const char **argv, const char *prefix) COMMIT_LOCK | SKIP_IF_UNCHANGED)) die(_("Unable to write new index file")); + enable_fscache(0); UNLEAK(pathspec); UNLEAK(dir); return exit_status;