summaryrefslogtreecommitdiffstats
path: root/repository.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-05-14 03:29:15 +0200
committerJunio C Hamano <gitster@pobox.com>2024-05-14 03:29:15 +0200
commit83f1add914c6b4682de1e944ec0d1ac043d53d78 (patch)
tree019da832054b17c504a3000ddff3a39394c8daea /repository.c
parentThe third batch (diff)
parentGit 2.45.1 (diff)
downloadgit-83f1add914c6b4682de1e944ec0d1ac043d53d78.tar.xz
git-83f1add914c6b4682de1e944ec0d1ac043d53d78.zip
Sync with Git 2.45.1
* tag 'v2.45.1': (42 commits) Git 2.45.1 Git 2.44.1 Git 2.43.4 Git 2.42.2 Git 2.41.1 Git 2.40.2 Git 2.39.4 fsck: warn about symlink pointing inside a gitdir core.hooksPath: add some protection while cloning init.templateDir: consider this config setting protected clone: prevent hooks from running during a clone Add a helper function to compare file contents init: refactor the template directory discovery into its own function find_hook(): refactor the `STRIP_EXTENSION` logic clone: when symbolic links collide with directories, keep the latter entry: report more colliding paths t5510: verify that D/F confusion cannot lead to an RCE submodule: require the submodule path to contain directories only clone_submodule: avoid using `access()` on directories submodules: submodule paths must not contain symlinks ...
Diffstat (limited to 'repository.c')
-rw-r--r--repository.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/repository.c b/repository.c
index 2118f563e3..c50849fd83 100644
--- a/repository.c
+++ b/repository.c
@@ -302,6 +302,8 @@ void repo_clear(struct repository *repo)
parsed_object_pool_clear(repo->parsed_objects);
FREE_AND_NULL(repo->parsed_objects);
+ FREE_AND_NULL(repo->settings.fsmonitor);
+
if (repo->config) {
git_configset_clear(repo->config);
FREE_AND_NULL(repo->config);