mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Expose remote branch ref as an environment variable
This commit is contained in:
parent
bb50e00447
commit
cb5ed6276d
5 changed files with 14 additions and 2 deletions
|
|
@ -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