Skip to content

Commit 72f81a6

Browse files
committed
anti cheat fix
1 parent 33aff8b commit 72f81a6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

codeclash/agents/player.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,10 @@ def _isolate_git(self) -> None:
236236
"git for-each-ref --format='%(refname)' refs/remotes refs/tags | xargs -r -n1 git update-ref -d",
237237
"git reflog expire --expire=now --all",
238238
"git gc --prune=now --quiet",
239+
"rm -f .git/FETCH_HEAD .git/ORIG_HEAD",
239240
]:
240241
self.environment.execute(cmd)
241-
self.logger.info("Isolated git: removed origin + opponent branches/tags (anti-cheat)")
242+
self.logger.info("Isolated git: removed origin + opponent branches/tags + FETCH_HEAD (anti-cheat)")
242243

243244
def _commit(self) -> None:
244245
"""Commit changes to the agent's codebase."""

0 commit comments

Comments
 (0)