Skip to content

Commit 5782868

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 fc89d3e + 845eec3 commit 5782868

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
@@ -622,6 +622,7 @@ int cmd_add(int argc, const char **argv, const char *prefix)
622622
die(_("Unable to write new index file"));
623623

624624
dir_clear(&dir);
625+
enable_fscache(0);
625626
UNLEAK(pathspec);
626627
return exit_status;
627628
}

0 commit comments

Comments
 (0)