Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 559d8a7 + 4f2069e commit 52ada7cCopy full SHA for 52ada7c
1 file changed
pre_commit/staged_files_only.py
@@ -47,7 +47,7 @@ def _unstaged_changes_cleared(patch_dir: str) -> Generator[None, None, None]:
47
retcode=None,
48
)
49
if retcode and diff_stdout_binary.strip():
50
- patch_filename = f'patch{int(time.time())}'
+ patch_filename = f'patch{int(time.time())}-{os.getpid()}'
51
patch_filename = os.path.join(patch_dir, patch_filename)
52
logger.warning('Unstaged files detected.')
53
logger.info(f'Stashing unstaged files to {patch_filename}.')
0 commit comments