mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
parent
559d8a78d1
commit
4f2069ee9a
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ def _unstaged_changes_cleared(patch_dir: str) -> Generator[None, None, None]:
|
|||
retcode=None,
|
||||
)
|
||||
if retcode and diff_stdout_binary.strip():
|
||||
patch_filename = f'patch{int(time.time())}'
|
||||
patch_filename = f'patch{int(time.time())}-{os.getpid()}'
|
||||
patch_filename = os.path.join(patch_dir, patch_filename)
|
||||
logger.warning('Unstaged files detected.')
|
||||
logger.info(f'Stashing unstaged files to {patch_filename}.')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue