mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 13:00:10 -06:00
Merge pull request #959 from asottile/non_cd
Don't require git for clean, gc, sample-config
This commit is contained in:
@@ -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