The remote branch reference was exposed as an environment variable for a pre-push hook, which makes decisions on git pushes to a particular remote branch name pattern.

This commit is contained in:
surafelabebe 2020-12-21 15:16:11 -08:00 committed by Surafel Worku
parent a062cbd439
commit 945549acbc
3 changed files with 13 additions and 1 deletions

View file

@ -61,6 +61,7 @@ def run_opts(
color=False,
verbose=False,
hook=None,
remote_branch='',
from_ref='',
to_ref='',
remote_name='',
@ -78,6 +79,7 @@ def run_opts(
color=color,
verbose=verbose,
hook=hook,
remote_branch=remote_branch,
from_ref=from_ref,
to_ref=to_ref,
remote_name=remote_name,