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

Function CheckRepoIsClean

tools/inspector_protocol/roll.py:41–47  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

39
40
41def CheckRepoIsClean(path):
42 os.chdir(path) # As a side effect this also checks for existence of the dir.
43 # If path isn't a git repo, this will throw and exception.
44 # And if it is a git repo and 'git status' has anything interesting to say,
45 # then it's not clean (uncommitted files etc.)
46 if len(RunCmd(['git', 'status', '--porcelain'])) != 0:
47 raise Exception('%s is not a clean git repo (run git status)' % path)
48
49
50def CheckRepoIsInspectorProtocolCheckout(path):

Callers 1

mainFunction · 0.70

Calls 2

chdirMethod · 0.80
RunCmdFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…