mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 10:16:52 +00:00
Don't gpg sign during test
This commit is contained in:
parent
7192665e31
commit
e1ec204be0
2 changed files with 8 additions and 9 deletions
|
|
@ -81,12 +81,7 @@ def test_allows_gitlfs(temp_git_dir): # pragma: no cover
|
|||
with temp_git_dir.as_cwd():
|
||||
# Work around https://github.com/github/git-lfs/issues/913
|
||||
cmd_output(
|
||||
'git',
|
||||
'commit',
|
||||
'--no-gpg-sign',
|
||||
'--allow-empty',
|
||||
'-m',
|
||||
'foo',
|
||||
'git', 'commit', '--no-gpg-sign', '--allow-empty', '-m', 'foo',
|
||||
)
|
||||
cmd_output('git', 'lfs', 'install')
|
||||
temp_git_dir.join('f.py').write('a' * 10000)
|
||||
|
|
|
|||
|
|
@ -10,10 +10,14 @@ from pre_commit_hooks.forbid_new_submodules import main
|
|||
def git_dir_with_git_dir(tmpdir):
|
||||
with tmpdir.as_cwd():
|
||||
cmd_output('git', 'init', '.')
|
||||
cmd_output('git', 'commit', '-m', 'init', '--allow-empty')
|
||||
cmd_output(
|
||||
'git', 'commit', '-m', 'init', '--allow-empty', '--no-gpg-sign',
|
||||
)
|
||||
cmd_output('git', 'init', 'foo')
|
||||
with tmpdir.join('foo').as_cwd():
|
||||
cmd_output('git', 'commit', '-m', 'init', '--allow-empty')
|
||||
cmd_output(
|
||||
'git', 'commit', '-m', 'init', '--allow-empty', '--no-gpg-sign',
|
||||
cwd=tmpdir.join('foo').strpath,
|
||||
)
|
||||
yield
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue