mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Move test to install_uninstall test so environment variables apply
This commit is contained in:
parent
57cc814b8b
commit
0bb8a8fabe
6 changed files with 46 additions and 47 deletions
|
|
@ -312,9 +312,9 @@ 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
|
||||
if args.remote_name and args.remote_url:
|
||||
environ['PRE_COMMIT_REMOTE_NAME'] = args.remote_name
|
||||
environ['PRE_COMMIT_REMOTE_URL'] = args.remote_url
|
||||
|
||||
with contextlib.ExitStack() as exit_stack:
|
||||
if stash:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue