diff options
| author | Eric DeCosta <edecosta@mathworks.com> | 2022-10-04 17:32:27 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-10-05 11:05:22 -0700 |
| commit | 6beb2688d33373508610b190f04721e748caa12c (patch) | |
| tree | 498f94c5982ff87cb0747cf9b162715abdd7100f /builtin/fsmonitor--daemon.c | |
| parent | fsmonitor: refactor filesystem checks to common interface (diff) | |
| download | git-6beb2688d33373508610b190f04721e748caa12c.tar.gz git-6beb2688d33373508610b190f04721e748caa12c.zip | |
fsmonitor: relocate socket file if .git directory is remote
If the .git directory is on a remote filesystem, create the socket
file in 'fsmonitor.socketDir' if it is defined, else create it in $HOME.
Signed-off-by: Eric DeCosta <edecosta@mathworks.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fsmonitor--daemon.c')
| -rw-r--r-- | builtin/fsmonitor--daemon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/fsmonitor--daemon.c b/builtin/fsmonitor--daemon.c index 2c109cf8b3..0123fc33ed 100644 --- a/builtin/fsmonitor--daemon.c +++ b/builtin/fsmonitor--daemon.c @@ -1343,7 +1343,8 @@ static int fsmonitor_run_daemon(void) * directory.) */ strbuf_init(&state.path_ipc, 0); - strbuf_addstr(&state.path_ipc, absolute_path(fsmonitor_ipc__get_path())); + strbuf_addstr(&state.path_ipc, + absolute_path(fsmonitor_ipc__get_path(the_repository))); /* * Confirm that we can create platform-specific resources for the |
