mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
Replace calls to touch with open(..., 'a').close()
This commit is contained in:
parent
f33a254dd8
commit
a4da7b8c8c
4 changed files with 6 additions and 6 deletions
|
|
@ -68,7 +68,7 @@ def _make_conflict():
|
|||
def in_merge_conflict(tempdir_factory):
|
||||
path = make_consuming_repo(tempdir_factory, 'script_hooks_repo')
|
||||
with cwd(path):
|
||||
cmd_output('touch', 'dummy')
|
||||
open('dummy', 'a').close()
|
||||
cmd_output('git', 'add', 'dummy')
|
||||
cmd_output('git', 'commit', '-m', 'Add config.')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue