def runSimpleGitCmd(self, args, stdout=subprocess.PIPE, extra_env=None): cmd = [constants.GIT_EXE] + args env = self.__getCmdEnv(extra_env) return proc.run_simple_cmd(cmd, cwd=self.__gitCmdCwd, env=env, stdout=stdout)
def _load(where): cmd = [constants.GIT_EXE, where, 'config', '--list'] cmd_out = proc.run_simple_cmd(cmd) return parse(cmd_out)