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>
This commit is contained in:

committed by
Junio C Hamano

parent
508c1a572d
commit
6beb2688d3
@ -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
|
||||
|
Reference in New Issue
Block a user