Don't require git for clean, gc, sample-config

This commit is contained in:
Anthony Sottile 2019-03-02 19:00:59 -08:00
parent 518a72d7e7
commit 917586a0e0

View file

@ -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()