mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 00:24:47 +04:00
Work around a bug in fsmonitor daemon by stopping it
This commit is contained in:
parent
8034430539
commit
9eb68e6200
1 changed files with 2 additions and 0 deletions
|
|
@ -49,6 +49,8 @@ def _intent_to_add_cleared() -> Generator[None, None, None]:
|
|||
|
||||
@contextlib.contextmanager
|
||||
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()
|
||||
diff_cmd = (
|
||||
'git', 'diff-index', '--ignore-submodules', '--binary',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue