mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Push remote env var details
This commit is contained in:
parent
b66d28964b
commit
57cc814b8b
5 changed files with 50 additions and 3 deletions
|
|
@ -312,6 +312,10 @@ def run(
|
|||
environ['PRE_COMMIT_ORIGIN'] = args.origin
|
||||
environ['PRE_COMMIT_SOURCE'] = args.source
|
||||
|
||||
if args.push_remote_name and args.push_remote_url:
|
||||
environ['PRE_COMMIT_REMOTE_NAME'] = args.push_remote_name
|
||||
environ['PRE_COMMIT_REMOTE_URL'] = args.push_remote_url
|
||||
|
||||
with contextlib.ExitStack() as exit_stack:
|
||||
if stash:
|
||||
exit_stack.enter_context(staged_files_only(store.directory))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue