MCPcopy Create free account
hub / github.com/InternLM/InternBootcamp / _get_current_git_commit

Function _get_current_git_commit

verl/scripts/diagnose.py:89–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87
88
89def _get_current_git_commit():
90 try:
91 result = subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True, check=True)
92 return result.stdout.strip()
93 except subprocess.CalledProcessError as e:
94 print(f"Error running git command: {e.stderr.strip()}")
95 return None
96 except FileNotFoundError:
97 print("Did not find command: git")
98 return None
99
100
101def check_verl():

Callers 1

check_verlFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected