diff --git a/pre_commit/commands/run.py b/pre_commit/commands/run.py index 414b2e81..8523b29f 100644 --- a/pre_commit/commands/run.py +++ b/pre_commit/commands/run.py @@ -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 diff --git a/tests/commands/run_test.py b/tests/commands/run_test.py index 914d567a..eaea8137 100644 --- a/tests/commands/run_test.py +++ b/tests/commands/run_test.py @@ -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)