@@ -247,6 +247,8 @@ char *fsm_settings__get_incompatible_msg(const struct repository *r,
{
struct strbuf msg = STRBUF_INIT;
+ strbuf_add(&msg, "fsmonitor: ", strlen("fsmonitor: "));
+
switch (reason) {
case FSMONITOR_REASON_UNTESTED:
case FSMONITOR_REASON_OK:
@@ -305,6 +305,10 @@ void refresh_fsmonitor(struct index_state *istate)
int is_trivial = 0;
struct repository *r = istate->repo ? istate->repo : the_repository;
enum fsmonitor_mode fsm_mode = fsm_settings__get_mode(r);
+ enum fsmonitor_reason reason = fsm_settings__get_reason(r);
+
+ if (reason > FSMONITOR_REASON_OK)
+ die("%s", fsm_settings__get_incompatible_msg(r, reason));
if (fsm_mode <= FSMONITOR_MODE_DISABLED ||
istate->fsmonitor_has_run_once)