mirror of
https://github.com/git/git.git
synced 2026-01-09 17:46:37 +00:00
fsmonitor: avoid socket location check if using hook
If monitoring is done via fsmonitor hook rather than IPC there is no need to check if the location of the Unix Domain socket (UDS) file is on a remote filesystem. 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
6beb2688d3
commit
8f44976882
@@ -48,13 +48,15 @@ static enum fsmonitor_reason check_uds_volume(struct repository *r)
|
||||
return FSMONITOR_REASON_OK;
|
||||
}
|
||||
|
||||
enum fsmonitor_reason fsm_os__incompatible(struct repository *r)
|
||||
enum fsmonitor_reason fsm_os__incompatible(struct repository *r, int ipc)
|
||||
{
|
||||
enum fsmonitor_reason reason;
|
||||
|
||||
reason = check_uds_volume(r);
|
||||
if (reason != FSMONITOR_REASON_OK)
|
||||
return reason;
|
||||
if (ipc) {
|
||||
reason = check_uds_volume(r);
|
||||
if (reason != FSMONITOR_REASON_OK)
|
||||
return reason;
|
||||
}
|
||||
|
||||
return FSMONITOR_REASON_OK;
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ static enum fsmonitor_reason check_vfs4git(struct repository *r)
|
||||
return FSMONITOR_REASON_OK;
|
||||
}
|
||||
|
||||
enum fsmonitor_reason fsm_os__incompatible(struct repository *r)
|
||||
enum fsmonitor_reason fsm_os__incompatible(struct repository *r, int ipc)
|
||||
{
|
||||
enum fsmonitor_reason reason;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user