mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
added remote_branch parameter in one of the tests
This commit is contained in:
parent
dbd75ca7b2
commit
69430751ab
2 changed files with 1 additions and 1 deletions
|
|
@ -379,7 +379,6 @@ def run(
|
|||
if args.remote_name and args.remote_url:
|
||||
environ['PRE_COMMIT_REMOTE_NAME'] = args.remote_name
|
||||
environ['PRE_COMMIT_REMOTE_URL'] = args.remote_url
|
||||
print(environ['PRE_COMMIT_REMOTE_NAME'])
|
||||
|
||||
if args.checkout_type:
|
||||
environ['PRE_COMMIT_CHECKOUT_TYPE'] = args.checkout_type
|
||||
|
|
|
|||
|
|
@ -486,6 +486,7 @@ def test_from_ref_to_ref_error_msg_error(
|
|||
def test_all_push_options_ok(cap_out, store, repo_with_passing_hook):
|
||||
args = run_opts(
|
||||
from_ref='master', to_ref='master',
|
||||
remote_branch='master',
|
||||
remote_name='origin', remote_url='https://example.com/repo',
|
||||
)
|
||||
ret, printed = _do_run(cap_out, store, repo_with_passing_hook, args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue