MCPcopy Create free account
hub / github.com/cztomczak/cefpython / get_git_hash

Function get_git_hash

tools/automate-git.py:268–274  ·  view source on GitHub ↗

Returns the git hash for the specified branch/tag/hash.

(path, branch)

Source from the content-addressed store, hash-verified

266
267
268def get_git_hash(path, branch):
269 """ Returns the git hash for the specified branch/tag/hash. """
270 cmd = "%s rev-parse %s" % (git_exe, branch)
271 result = exec_cmd(cmd, path)
272 if result['out'] != '':
273 return result['out'].strip()
274 return 'Unknown'
275
276
277def get_git_date(path, branch):

Callers 2

automate-git.pyFile · 0.85

Calls 1

exec_cmdFunction · 0.85

Tested by

no test coverage detected