Skip to content

Commit

Permalink
fsmonitor-settings: simplify initialization of settings data
Browse files Browse the repository at this point in the history
fixup! fsmonitor: config settings are repository-specific

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
jeffhostetler authored and gitster committed Mar 13, 2022
1 parent cf2d3f4 commit 7e19fac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fsmonitor-settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ static void lookup_fsmonitor_settings(struct repository *r)
return;

CALLOC_ARRAY(s, 1);
s->mode = FSMONITOR_MODE_DISABLED;

r->settings.fsmonitor = s;

fsm_settings__set_disabled(r);

/*
* Overload the existing "core.fsmonitor" config setting (which
* has historically been either unset or a hook pathname) to
Expand Down

0 comments on commit 7e19fac

Please sign in to comment.