MCPcopy Index your code
hub / github.com/nodejs/node / RunCmd

Function RunCmd

tools/inspector_protocol/roll.py:33–38  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

31REVISION_LINE_PREFIX = 'Revision: '
32
33def RunCmd(cmd):
34 p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
35 (stdoutdata, stderrdata) = p.communicate()
36 if p.returncode != 0:
37 raise Exception('%s: exit status %d', str(cmd), p.returncode)
38 return stdoutdata.decode('utf-8')
39
40
41def CheckRepoIsClean(path):

Callers 4

CheckRepoIsCleanFunction · 0.70
CheckoutRevisionFunction · 0.70
GetHeadRevisionFunction · 0.70

Calls 2

strFunction · 0.85
decodeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…