mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Merge pull request #1339 from andrewhare/andrewhare/post-checkout
Add post-checkout
This commit is contained in:
commit
566f1afcd4
9 changed files with 77 additions and 5 deletions
|
|
@ -325,6 +325,9 @@ def run(
|
|||
environ['PRE_COMMIT_REMOTE_NAME'] = args.remote_name
|
||||
environ['PRE_COMMIT_REMOTE_URL'] = args.remote_url
|
||||
|
||||
if args.checkout_type:
|
||||
environ['PRE_COMMIT_CHECKOUT_TYPE'] = args.checkout_type
|
||||
|
||||
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