Skip to content

Commit

Permalink
Merge pull request #3287 from dscho/redo-fsmonitor-null-last-update
Browse files Browse the repository at this point in the history
Redo fix for FSMonitor
  • Loading branch information
dscho committed Jun 21, 2021
2 parents 5b320b3 + 65a2766 commit 47d5684
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fsmonitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47d5684

Please sign in to comment.