Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Hostetler <jeffhost@microsoft.com>2022-05-27 00:47:04 +0300
committerJunio C Hamano <gitster@pobox.com>2022-05-27 01:59:26 +0300
commitddc5dacfb368d4903f5dd475897e5e11772f9970 (patch)
tree8a7437f1eff1f39875d0dcc022c722c1c6c97126 /fsmonitor-settings.c
parentd989b266c1a7ef47f27cec75e90f3dfefbfa0200 (diff)
fsmonitor-settings: NTFS and FAT32 on MacOS are incompatible
On MacOS mark repos on NTFS or FAT32 volumes as incompatible. The builtin FSMonitor used Unix domain sockets on MacOS for IPC with clients. These sockets are kept in the .git directory. Unix sockets are not supported by NTFS and FAT32, so the daemon cannot start up. Test for this during our compatibility checking so that client commands do not keep trying to start the daemon. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fsmonitor-settings.c')
-rw-r--r--fsmonitor-settings.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fsmonitor-settings.c b/fsmonitor-settings.c
index d2fb0141f8..658cb79da0 100644
--- a/fsmonitor-settings.c
+++ b/fsmonitor-settings.c
@@ -225,6 +225,12 @@ char *fsm_settings__get_incompatible_msg(const struct repository *r,
_("virtual repository '%s' is incompatible with fsmonitor"),
r->worktree);
goto done;
+
+ case FSMONITOR_REASON_NOSOCKETS:
+ strbuf_addf(&msg,
+ _("repository '%s' is incompatible with fsmonitor due to lack of Unix sockets"),
+ r->worktree);
+ goto done;
}
BUG("Unhandled case in fsm_settings__get_incompatible_msg: '%d'",