aboutsummaryrefslogtreecommitdiff
path: root/cli.py
diff options
context:
space:
mode:
authorGravatar SwiftyOS <craigswift13@gmail.com> 2023-09-15 20:13:21 +0200
committerGravatar SwiftyOS <craigswift13@gmail.com> 2023-09-15 20:13:21 +0200
commit169f7210c1d4206f44d7329f82fef4b115f924a3 (patch)
treed79280d7b7fed60989c68efc33da80cedd076b01 /cli.py
parentchange to check for only staged changes (diff)
downloadAuto-GPT-169f7210c1d4206f44d7329f82fef4b115f924a3.tar.gz
Auto-GPT-169f7210c1d4206f44d7329f82fef4b115f924a3.tar.bz2
Auto-GPT-169f7210c1d4206f44d7329f82fef4b115f924a3.zip
fix arena path name
Diffstat (limited to 'cli.py')
-rw-r--r--cli.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli.py b/cli.py
index 12314784c..a4b00c822 100644
--- a/cli.py
+++ b/cli.py
@@ -447,7 +447,7 @@ def enter(agent_name, branch):
json.dump(data, json_file, indent=4)
# Create a commit with the specified message
- subprocess.check_call(['git', 'add', f'agent/{agent_name}.json'])
+ subprocess.check_call(['git', 'add', f'arena/{agent_name}.json'])
subprocess.check_call(['git', 'commit', '-m', f'{agent_name} entering the arena'])
# Push the commit
@@ -527,7 +527,7 @@ def submit(agent_name, branch):
subprocess.check_call(['git', 'checkout', 'arena_submission'])
# Update the agent_name.json file in the arena folder with the new hash and timestamp
- json_file_path = f'agent/{agent_name}.json'
+ json_file_path = f'arena/{agent_name}.json'
with open(json_file_path, 'r') as json_file:
data = json.load(json_file)