mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-20 01:24:42 +04:00
Don't require git for clean, gc, sample-config
This commit is contained in:
parent
518a72d7e7
commit
917586a0e0
1 changed files with 2 additions and 1 deletions
|
|
@ -255,6 +255,7 @@ def main(argv=None):
|
||||||
parser.parse_args(['--help'])
|
parser.parse_args(['--help'])
|
||||||
|
|
||||||
with error_handler(), logging_handler(args.color):
|
with error_handler(), logging_handler(args.color):
|
||||||
|
if args.command not in {'clean', 'gc', 'sample-config'}:
|
||||||
_adjust_args_and_chdir(args)
|
_adjust_args_and_chdir(args)
|
||||||
|
|
||||||
git.check_for_cygwin_mismatch()
|
git.check_for_cygwin_mismatch()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue