MCPcopy Create free account
hub / github.com/METR/vivaria / get_latest_commit_id

Function get_latest_commit_id

cli/viv_cli/github.py:81–83  ·  view source on GitHub ↗

Get the latest commit id.

()

Source from the content-addressed store, hash-verified

79
80
81def get_latest_commit_id() -> str:
82 """Get the latest commit id."""
83 return execute("git rev-parse HEAD", error_out=True).out
84
85
86def get_branch() -> str | None:

Callers 1

Calls 1

executeFunction · 0.90

Tested by

no test coverage detected