mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-14 22:44:45 +00:00
azure pipelines [skip travis] [skip appveyor]
This commit is contained in:
parent
8171e47eb2
commit
8bb94f0bd4
10 changed files with 33 additions and 95 deletions
|
|
@ -22,7 +22,7 @@ def f1_is_a_conflict_file(tmpdir):
|
|||
cmd_output('git', 'init', '--', repo1.strpath)
|
||||
with repo1.as_cwd():
|
||||
repo1_f1.ensure()
|
||||
cmd_output('git', 'add', '--', repo1_f1.strpath)
|
||||
cmd_output('git', 'add', '.')
|
||||
cmd_output('git', 'commit', '--no-gpg-sign', '-m', 'commit1')
|
||||
|
||||
cmd_output('git', 'clone', repo1.strpath, repo2.strpath)
|
||||
|
|
@ -77,7 +77,7 @@ def repository_pending_merge(tmpdir):
|
|||
cmd_output('git', 'init', repo1.strpath)
|
||||
with repo1.as_cwd():
|
||||
repo1_f1.ensure()
|
||||
cmd_output('git', 'add', '--', repo1_f1.strpath)
|
||||
cmd_output('git', 'add', '.')
|
||||
cmd_output('git', 'commit', '--no-gpg-sign', '-m', 'commit1')
|
||||
|
||||
cmd_output('git', 'clone', repo1.strpath, repo2.strpath)
|
||||
|
|
@ -90,7 +90,7 @@ def repository_pending_merge(tmpdir):
|
|||
# Commit in clone and pull without committing
|
||||
with repo2.as_cwd():
|
||||
repo2_f2.write('child\n')
|
||||
cmd_output('git', 'add', '--', repo2_f2.strpath)
|
||||
cmd_output('git', 'add', '.')
|
||||
cmd_output('git', 'commit', '--no-gpg-sign', '-m', 'clone commit2')
|
||||
cmd_output('git', 'pull', '--no-commit', '--no-rebase')
|
||||
# We should end up in a pending merge
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue