2121
2222import boto3
2323
24- from codeclash .utils .git_utils import get_current_git_branch , has_unpushed_commits , is_git_repo_dirty
24+ from codeclash .utils .git_utils import get_current_git_branch
2525from codeclash .utils .log import get_logger
2626
2727logger = get_logger ("launch" , emoji = "🚀" )
2828
2929
30- def check_git_status_and_confirm () -> None :
31- if not is_git_repo_dirty () and not has_unpushed_commits ():
32- return
33-
34- if input ("Git repository dirty/unpushed, continue anyway? (y/N): " ).strip ().lower () not in ("y" , "yes" ):
35- sys .exit (1 )
36-
37-
3830class AWSBatchJobLauncher :
3931 def __init__ (
4032 self ,
@@ -167,7 +159,7 @@ def main():
167159 parser .add_argument ("--region" , default = "us-east-1" , help = "AWS region (default: us-east-1)" )
168160 parser .add_argument ("--wait" , action = "store_true" , help = "Wait for the job to complete before exiting" )
169161 parser .add_argument ("--show-logs" , action = "store_true" , help = "Show job logs after completion (implies --wait)" )
170- parser .add_argument ("-y" , action = "store_true" , help = "Skip git dirty prompt and continue automatically " )
162+ parser .add_argument ("-y" , action = "store_true" , help = "Legacy " )
171163
172164 if "--" in sys .argv :
173165 separator_index = sys .argv .index ("--" )
@@ -178,9 +170,6 @@ def main():
178170
179171 args = parser .parse_args (aws_args )
180172
181- if not args .y :
182- check_git_status_and_confirm ()
183-
184173 launcher = AWSBatchJobLauncher (
185174 job_definition_name = args .job_definition , job_queue = args .job_queue , region = args .region
186175 )
0 commit comments