mirror of
https://github.com/openai/codex.git
synced 2026-04-28 02:11:08 +03:00
wip
This commit is contained in:
@@ -37,7 +37,8 @@ def main(task_input):
|
||||
prompt_content = prompt_file.read_text(encoding='utf-8')
|
||||
task_content = task_file.read_text(encoding='utf-8')
|
||||
subprocess.check_call(cmd + [prompt_content + '\n\n' + task_content])
|
||||
subprocess.check_call(['git', 'add', '-u'])
|
||||
# Stage all changes, including new files (not just modifications)
|
||||
subprocess.check_call(['git', 'add', '-A'])
|
||||
subprocess.check_call(['git', 'commit', '-F', str(msg_file)])
|
||||
finally:
|
||||
msg_file.unlink()
|
||||
|
||||
Reference in New Issue
Block a user