MCPcopy Create free account
hub / github.com/apache/arrow / run_cmd

Method run_cmd

dev/archery/archery/utils/git.py:37–43  ·  view source on GitHub ↗

Inject flags before sub-command in argv.

(self, cmd, *argv, git_dir=None, **kwargs)

Source from the content-addressed store, hash-verified

35 self.bin = default_bin(git_bin, "git")
36
37 def run_cmd(self, cmd, *argv, git_dir=None, **kwargs):
38 """ Inject flags before sub-command in argv. """
39 opts = []
40 if git_dir is not None:
41 opts.extend(["-C", _stringify_path(git_dir)])
42
43 return self.run(*opts, cmd, *argv, **kwargs)
44
45 @capture_stdout(strip=False)
46 @git_cmd

Callers 9

archiveMethod · 0.95
cloneMethod · 0.95
fetchMethod · 0.95
checkoutMethod · 0.95
logMethod · 0.95
ls_filesMethod · 0.95
rev_parseMethod · 0.95
statusMethod · 0.95
test_crossbow_submitFunction · 0.80

Calls 3

extendMethod · 0.80
_stringify_pathFunction · 0.50
runMethod · 0.45

Tested by 1

test_crossbow_submitFunction · 0.64