mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-26 00:59:11 -05:00
Don't require git for clean, gc, sample-config
This commit is contained in:
+2
-1
@@ -255,7 +255,8 @@ def main(argv=None):
|
||||
parser.parse_args(['--help'])
|
||||
|
||||
with error_handler(), logging_handler(args.color):
|
||||
_adjust_args_and_chdir(args)
|
||||
if args.command not in {'clean', 'gc', 'sample-config'}:
|
||||
_adjust_args_and_chdir(args)
|
||||
|
||||
git.check_for_cygwin_mismatch()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user