$tmp_file = new TempFile();
Filesystem::writeFile($tmp_file, $message);
- $command = $this->getSVNCommitCommand();
- chdir($repository_api->getPath());
-
- $err = phutil_passthru(
- $command,
+ $command = csprintf(
+ 'svn commit %Ls --encoding utf-8 -F %s',
$files,
- $tmp_file
- );
+ $tmp_file);
+
+ // make sure to specify LANG on non-windows systems to surpress any fancy
+ // warnings; see @{method:getSVNLangEnvVar}.
+ if (!phutil_is_windows()) {
+ $command = csprintf('LANG=%C %C', $this->getSVNLangEnvVar(), $command);
+ }
+ chdir($repository_api->getPath());
+
+ $err = phutil_passthru('%C', $command);
if ($err) {
throw new Exception("Executing 'svn commit' failed!");
}
return $locale;
}
- private function getSVNCommitCommand() {
- $command = 'svn commit %Ls --encoding utf-8 -F %s';
- // make sure to specify LANG on non-windows systems to surpress any fancy
- // warnings; see @{method:getSVNLangEnvVar}.
- if (!phutil_is_windows()) {
- $command = 'LANG='.$this->getSVNLangEnvVar().' '.$command;
- }
- return $command;
- }
-
private function runSanityChecks(array $revision) {
$repository_api = $this->getRepositoryAPI();
$revision_id = $revision['id'];