From 65a2766b34383829114b172538db5b7b42cfe042 Mon Sep 17 00:00:00 2001 From: Jeff Hostetler Date: Mon, 21 Jun 2021 14:07:46 -0400 Subject: [PATCH] fixup! fsmonitor: introduce `core.useBuiltinFSMonitor` to call the daemon via IPC Signed-off-by: Jeff Hostetler --- fsmonitor.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fsmonitor.c b/fsmonitor.c index 0b40643442eb06..af960b50299f5d 100644 --- a/fsmonitor.c +++ b/fsmonitor.c @@ -290,9 +290,10 @@ void refresh_fsmonitor(struct index_state *istate) trace_printf_key(&trace_fsmonitor, "refresh fsmonitor"); if (r->settings.use_builtin_fsmonitor > 0) { - query_success = istate->fsmonitor_last_update && - !fsmonitor_ipc__send_query(istate->fsmonitor_last_update, - &query_result); + query_success = !fsmonitor_ipc__send_query( + istate->fsmonitor_last_update ? + istate->fsmonitor_last_update : "builtin:fake", + &query_result); if (query_success) { /* * The response contains a series of nul terminated