git-commit-vandalism/compat/fsmonitor
Jeff Hostetler 39664e9309 fsmonitor--daemon: cd out of worktree root
Teach the fsmonitor--daemon to CD outside of the worktree
before starting up.

The common Git startup mechanism causes the CWD of the daemon process
to be in the root of the worktree.  On Windows, this causes the daemon
process to hold a locked handle on the CWD and prevents other
processes from moving or deleting the worktree while the daemon is
running.

CD to HOME before entering main event loops.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2022-05-26 15:59:26 -07:00
..
fsm-darwin-gcc.h compat/fsmonitor/fsm-listen-darwin: add MacOS header files for FSEvent 2022-03-25 16:04:16 -07:00
fsm-listen-darwin.c fsm-listen-darwin: ignore FSEvents caused by xattr changes on macOS 2022-05-26 15:59:26 -07:00
fsm-listen-win32.c fsmonitor--daemon: cd out of worktree root 2022-05-26 15:59:26 -07:00
fsm-listen.h
fsm-settings-darwin.c fsmonitor-settings: NTFS and FAT32 on MacOS are incompatible 2022-05-26 15:59:26 -07:00
fsm-settings-win32.c fsmonitor-settings: remote repos on Windows are incompatible 2022-05-26 15:59:26 -07:00