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

Method defaultDestination

git-p4.py:4323–4330  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

4321 self.cloneBare = False
4322
4323 def defaultDestination(self, args):
4324 # TODO: use common prefix of args?
4325 depotPath = args[0]
4326 depotDir = re.sub(r"(@[^@]*)$", "", depotPath)
4327 depotDir = re.sub(r"(#[^#]*)$", "", depotDir)
4328 depotDir = re.sub(r"\.\.\.$", "", depotDir)
4329 depotDir = re.sub(r"/$", "", depotDir)
4330 return os.path.split(depotDir)[1]
4331
4332 def run(self, args):
4333 if len(args) < 1:

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected