MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / _get_commit_hash

Method _get_commit_hash

codeclash/agents/player.py:188–194  ·  view source on GitHub ↗

Get the current commit hash.

(self)

Source from the content-addressed store, hash-verified

186 self.logger.debug("No patch to apply, skipping")
187 return
188
189 create_file_in_container(
190 container=self.environment, # type: ignore
191 content=patch,
192 dest_path="tmp_patch.txt",
193 )
194
195 commands = ["git status", "git apply tmp_patch.txt", "rm -f tmp_patch.txt"]
196 cmd = " && ".join(commands)
197 self.logger.debug(f"Executing command: {cmd}")

Callers 1

__init__Method · 0.95

Calls 2

assert_zero_exit_codeFunction · 0.90
executeMethod · 0.45

Tested by

no test coverage detected