Skip to content

Commit 6e5f7f8

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 3009f8a + 5c7ed78 commit 6e5f7f8

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
@@ -580,6 +580,7 @@ int cmd_add(int argc, const char **argv, const char *prefix)
580580
COMMIT_LOCK | SKIP_IF_UNCHANGED))
581581
die(_("Unable to write new index file"));
582582

583+
enable_fscache(0);
583584
UNLEAK(pathspec);
584585
UNLEAK(dir);
585586
return exit_status;

0 commit comments

Comments
 (0)