Skip to content

Commit 7e19fac

Browse files
jeffhostetlergitster
authored andcommitted
fsmonitor-settings: simplify initialization of settings data
fixup! fsmonitor: config settings are repository-specific Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent cf2d3f4 commit 7e19fac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fsmonitor-settings.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ static void lookup_fsmonitor_settings(struct repository *r)
2222
return;
2323

2424
CALLOC_ARRAY(s, 1);
25+
s->mode = FSMONITOR_MODE_DISABLED;
2526

2627
r->settings.fsmonitor = s;
2728

28-
fsm_settings__set_disabled(r);
29-
3029
/*
3130
* Overload the existing "core.fsmonitor" config setting (which
3231
* has historically been either unset or a hook pathname) to

0 commit comments

Comments
 (0)