MCPcopy Create free account
hub / github.com/defold/defold / git_sha1

Function git_sha1

editor/scripts/bundle.py:231–235  ·  view source on GitHub ↗
(ref = 'HEAD')

Source from the content-addressed store, hash-verified

229 return out.strip()
230
231def git_sha1(ref = 'HEAD'):
232 try:
233 return run.command(['git', 'rev-parse', ref])
234 except Exception as e:
235 sys.exit("Unable to find git sha from ref: %s" % (ref))
236
237def remove_readonly_retry(function, path, excinfo):
238 try:

Callers 1

bundle.pyFile · 0.70

Calls 2

commandMethod · 0.80
exitMethod · 0.80

Tested by

no test coverage detected