MCPcopy Create free account
hub / github.com/git/git / getClientRoot

Function getClientRoot

git-p4.py:1409–1420  ·  view source on GitHub ↗

Grab the client directory.

()

Source from the content-addressed store, hash-verified

1407
1408
1409def getClientRoot():
1410 """Grab the client directory."""
1411
1412 output = p4CmdList(["client", "-o"])
1413 if len(output) != 1:
1414 die('Output from "client -o" is %d lines, expecting 1' % len(output))
1415
1416 entry = output[0]
1417 if "Root" not in entry:
1418 die('Client has no "Root"')
1419
1420 return entry["Root"]
1421
1422
1423def wildcard_decode(path):

Callers 1

runMethod · 0.85

Calls 2

p4CmdListFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected