MCPcopy Create free account
hub / github.com/Drakkar-Software/OctoBot / _run_git_command

Method _run_git_command

octobot/updater/python_updater.py:98–105  ·  view source on GitHub ↗

Use a shell-escaped version of git executable :param args: git args :return: the command result

(self, *args)

Source from the content-addressed store, hash-verified

96 stderr=subprocess.DEVNULL).decode().strip()
97
98 def _run_git_command(self, *args):
99 """
100 Use a shell-escaped version of git executable
101 :param args: git args
102 :return: the command result
103 """
104 return subprocess.check_output([shlex_quote("git")] + list(*args),
105 stderr=subprocess.DEVNULL).decode().strip()
106
107 def _run_git_fetch(self, with_all=True, with_tags=True):
108 return self._run_git_command(["fetch",

Callers 5

_run_git_fetchMethod · 0.95
_run_git_checkout_tagMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected