Work around a bug in fsmonitor daemon by stopping it

This commit is contained in:
LenaWil 2023-05-18 21:10:49 +02:00 committed by GitHub
parent 8034430539
commit 9eb68e6200
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,6 +49,8 @@ def _intent_to_add_cleared() -> Generator[None, None, None]:
@contextlib.contextmanager @contextlib.contextmanager
def _unstaged_changes_cleared(patch_dir: str) -> Generator[None, None, None]: def _unstaged_changes_cleared(patch_dir: str) -> Generator[None, None, None]:
# Work around a bug in fsmonitor daemon by stopping it.
cmd_output('git', 'fsmonitor--daemon', 'stop')
tree = cmd_output('git', 'write-tree')[1].strip() tree = cmd_output('git', 'write-tree')[1].strip()
diff_cmd = ( diff_cmd = (
'git', 'diff-index', '--ignore-submodules', '--binary', 'git', 'diff-index', '--ignore-submodules', '--binary',