Skip to content

Commit ba4743c

Browse files
authored
Merge pull request #1914 from benpeart/free-fscache-after-add-gfw
At the end of the add command, disable and free the fscache
2 parents b517370 + 23ae5f1 commit ba4743c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/add.c

+1
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ int cmd_add(int argc, const char **argv, const char *prefix)
542542
COMMIT_LOCK | SKIP_IF_UNCHANGED))
543543
die(_("Unable to write new index file"));
544544

545+
enable_fscache(0);
545546
UNLEAK(pathspec);
546547
UNLEAK(dir);
547548
return exit_status;

0 commit comments

Comments
 (0)