mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
feat: add --skip-sanity-check-repo switch
This commit is contained in:
parent
72cb5db530
commit
510fa24ade
2 changed files with 9 additions and 2 deletions
|
@ -502,6 +502,12 @@ def get_parser(default_config_files, git_root):
|
||||||
default=False,
|
default=False,
|
||||||
help="Perform a dry run without modifying files (default: False)",
|
help="Perform a dry run without modifying files (default: False)",
|
||||||
)
|
)
|
||||||
|
group.add_argument(
|
||||||
|
"--skip-sanity-check-repo",
|
||||||
|
action="store_true",
|
||||||
|
help="Skip the sanity check for the git repository (default: False)",
|
||||||
|
default=False,
|
||||||
|
)
|
||||||
group = parser.add_argument_group("Fixing and committing")
|
group = parser.add_argument_group("Fixing and committing")
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
"--lint",
|
"--lint",
|
||||||
|
|
|
@ -584,8 +584,9 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if not sanity_check_repo(repo, io):
|
if not args.skip_sanity_check_repo:
|
||||||
return 1
|
if not sanity_check_repo(repo, io):
|
||||||
|
return 1
|
||||||
|
|
||||||
commands = Commands(
|
commands = Commands(
|
||||||
io, None, verify_ssl=args.verify_ssl, args=args, parser=parser, verbose=args.verbose
|
io, None, verify_ssl=args.verify_ssl, args=args, parser=parser, verbose=args.verbose
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue