Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
81
def
get_latest_commit_id() -> str:
82
""
"Get the latest commit id."
""
83
return
execute(
"git rev-parse HEAD"
, error_out=True).out
84
85
86
def
get_branch() -> str | None:
Callers
1
create_working_tree_permalink
Function · 0.85
Calls
1
execute
Function · 0.90
Tested by
no test coverage detected