Skip to content

Commit bc8f5c5

Browse files
committed
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 a18a8a4 + fa21db0 commit bc8f5c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/add.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ int cmd_add(int argc, const char **argv, const char *prefix)
581581
COMMIT_LOCK | SKIP_IF_UNCHANGED))
582582
die(_("Unable to write new index file"));
583583

584+
enable_fscache(0);
584585
UNLEAK(pathspec);
585586
UNLEAK(dir);
586587
return exit_status;

0 commit comments

Comments
 (0)