mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-14 17:41:45 +04:00
Expose local branch ref as an environment variable
This commit is contained in:
parent
8037b45cb1
commit
584fd585ec
5 changed files with 17 additions and 2 deletions
|
|
@ -487,6 +487,7 @@ 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',
|
||||
local_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