コード例 #1
0
 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)
コード例 #2
0
def _load(where):
    cmd = [constants.GIT_EXE, where, 'config', '--list']
    cmd_out = proc.run_simple_cmd(cmd)
    return parse(cmd_out)