Home | History | Annotate | Download | only in tools

Lines Matching refs:cwd

90   def __init__(self, returncode, cmd, cwd, stdout, stderr):
94 self.cwd = cwd
99 return ("Command '%s' returned non-zero exit status %d. cwd was '%s'.\n\n"
101 (self.cmd, self.returncode, self.cwd, self.stdout, self.stderr))
108 def GetCommandStdout(args, cwd=REPOSITORY_ROOT, ignore_errors=False):
116 cwd: The working directory to use. Defaults to REPOSITORY_ROOT.
123 p = subprocess.Popen(args=args, cwd=cwd, stdout=subprocess.PIPE,
129 raise CommandError(p.returncode, ' '.join(args), cwd, stdout, stderr)
133 cwd=REPOSITORY_ROOT):
142 cwd: Working directory to use.
146 status = GetCommandStdout(['git', 'status', '--porcelain'], cwd=cwd)
153 conflicts_deleted_by_us, cwd=cwd)
164 GetCommandStdout(['git', 'add', '-f'] + conflicts_renamed_by_them, cwd=cwd)
167 status = GetCommandStdout(['git', 'status', '--porcelain'], cwd=cwd)
173 GetCommandStdout(['git', 'reset', '--hard'], cwd=cwd)
183 GetCommandStdout(['git', 'commit', '-m', commit_message], cwd=cwd)