mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-31 02:36:52 +00:00
Add forbid-new-submodules to hooks.yaml
This commit is contained in:
parent
7bcb6a92bf
commit
4b928ab06b
4 changed files with 10 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from pre_commit_hooks.util import cmd_output
|
||||
|
|
@ -19,6 +20,7 @@ def main(argv=None):
|
|||
retv = 1
|
||||
|
||||
if retv:
|
||||
print()
|
||||
print('This commit introduces new submodules.')
|
||||
print('Did you unintentionally `git add .`?')
|
||||
print('To fix: git rm {thesubmodule} # no trailing slash')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue