mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
Remove period from 'Stashing unstaged files to {patch_filename}.'
This extra period makes it ever so slightly more difficult to copy the path in the rare circumstance where I actually care about the path.
This commit is contained in:
parent
3fe38dff05
commit
61c22e1ba5
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ def _unstaged_changes_cleared(patch_dir: str) -> Generator[None, None, None]:
|
||||||
patch_filename = f'patch{int(time.time())}-{os.getpid()}'
|
patch_filename = f'patch{int(time.time())}-{os.getpid()}'
|
||||||
patch_filename = os.path.join(patch_dir, patch_filename)
|
patch_filename = os.path.join(patch_dir, patch_filename)
|
||||||
logger.warning('Unstaged files detected.')
|
logger.warning('Unstaged files detected.')
|
||||||
logger.info(f'Stashing unstaged files to {patch_filename}.')
|
logger.info(f'Stashing unstaged files to {patch_filename}')
|
||||||
# Save the current unstaged changes as a patch
|
# Save the current unstaged changes as a patch
|
||||||
os.makedirs(patch_dir, exist_ok=True)
|
os.makedirs(patch_dir, exist_ok=True)
|
||||||
with open(patch_filename, 'wb') as patch_file:
|
with open(patch_filename, 'wb') as patch_file:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue