We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7780118 + 8f1491c commit f00565cCopy full SHA for f00565c
config.c
@@ -2519,6 +2519,12 @@ int git_config_get_max_percent_split_change(void)
2519
2520
int repo_config_get_fsmonitor(struct repository *r)
2521
{
2522
+ if (!r->worktree) {
2523
+ /* FSMonitor makes no sense in bare repositories */
2524
+ core_fsmonitor = NULL;
2525
+ return 1;
2526
+ }
2527
+
2528
if (r->settings.use_builtin_fsmonitor > 0) {
2529
core_fsmonitor = "(built-in daemon)";
2530
return 1;
0 commit comments