mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +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
|
|
@ -99,6 +99,9 @@ def _add_run_options(parser: argparse.ArgumentParser) -> None:
|
|||
parser.add_argument(
|
||||
'--remote-branch', help='Remote branch ref used by `git push`.',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--local-branch', help='Local branch ref used by `git push`.',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--from-ref', '--source', '-s',
|
||||
help=(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue