MCPcopy
hub / github.com/oobabooga/textgen / get_current_commit

Function get_current_commit

one_click.py:165–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163
164
165def get_current_commit():
166 result = run_cmd("git rev-parse HEAD", capture_output=True, environment=True)
167 return result.stdout.decode('utf-8').strip()
168
169
170def get_extensions_names():

Callers 1

update_requirementsFunction · 0.85

Calls 3

run_cmdFunction · 0.85
stripMethod · 0.80
decodeMethod · 0.45

Tested by

no test coverage detected