Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add forbid-submodules hook #815

Merged
merged 1 commit into from
Oct 5, 2022
Merged

add forbid-submodules hook #815

merged 1 commit into from
Oct 5, 2022

Conversation

asottile
Copy link
Member

@asottile asottile commented Oct 4, 2022

from the recipe in #707

$ pre-commit  try-repo . forbid-submodules --all-files
[WARNING] Creating temporary repo with uncommitted changes...
===============================================================================
Using config:
===============================================================================
repos:
-   repo: /tmp/tmpsa1bou80/shadow-repo
    rev: 56154e7b7ef456dd9f8878854319891c00717415
    hooks:
    -   id: forbid-submodules
===============================================================================
[INFO] Initializing environment for /tmp/tmpsa1bou80/shadow-repo.
forbid submodules........................................................Failed
- hook id: forbid-submodules
- exit code: 1

submodules are not allowed in this repository:

astpretty

@asottile asottile merged commit 6b03546 into main Oct 5, 2022
@asottile asottile deleted the forbid-submodules branch October 5, 2022 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant