mirror of
https://github.com/git/git.git
synced 2026-01-10 10:13:33 +00:00
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
9
compat/fsmonitor/fsm-ipc-win32.c
Normal file
9
compat/fsmonitor/fsm-ipc-win32.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "config.h"
|
||||
#include "fsmonitor-ipc.h"
|
||||
|
||||
const char *fsmonitor_ipc__get_path(struct repository *r) {
|
||||
static char *ret;
|
||||
if (!ret)
|
||||
ret = git_pathdup("fsmonitor--daemon.ipc");
|
||||
return ret;
|
||||
}
|
||||
Reference in New Issue
Block a user