Skip to content

Commit

Permalink
Merge pull request git-for-windows#1914 from benpeart/free-fscache-af…
Browse files Browse the repository at this point in the history
…ter-add-gfw

At the end of the add command, disable and free the fscache
  • Loading branch information
dscho committed Oct 6, 2020
2 parents 6a87e2d + 87c4ab7 commit 0a0d4a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin/add.c
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ int cmd_add(int argc, const char **argv, const char *prefix)
die(_("Unable to write new index file"));

dir_clear(&dir);
enable_fscache(0);
UNLEAK(pathspec);
return exit_status;
}

0 comments on commit 0a0d4a1

Please sign in to comment.