MCPcopy Create free account
hub / github.com/QuinnFreedman/modular / get_last_commit

Function get_last_commit

build.py:20–28  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

18
19
20def get_last_commit(dir):
21 rev_file_name = path.join(dir, "last_modified.txt")
22 last_commit = None
23 try:
24 with open(rev_file_name) as f:
25 last_commit = next(f)
26 except FileNotFoundError as f:
27 pass
28 return last_commit
29
30
31def run_command_or_exit_with_error(command: List[str], **kwargs):

Callers 1

buildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected