Use a shell-escaped version of git executable :param args: git args :return: the command result
(self, *args)
| 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", |
no outgoing calls
no test coverage detected