Skip to content

Commit ccff73d

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 94d3b68 + 4bf6f02 commit ccff73d

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

546+
enable_fscache(0);
546547
UNLEAK(pathspec);
547548
UNLEAK(dir);
548549
return exit_status;

0 commit comments

Comments
 (0)