Skip to content

Commit

Permalink
BUG fix error in pushing transifex source files
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Mooyman committed Oct 6, 2015
1 parent a8c2c5c commit 26c3a4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/Model/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ public function isValid() {
public function isTranslatable() {
return $this->directory && realpath($this->directory . '/.tx/config');
}


/**
* Get name of this module
*
* @return string
*/
public function getName() {
return $this->name;
}
Expand Down
5 changes: 3 additions & 2 deletions src/Steps/Release/UpdateTranslations.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ protected function generateJavascriptInDirectory(OutputInterface $output, $base,
* Push source updates to transifex
*
* @param OutputInterface $output
* @param type $modules
* @param Module[] $modules
*/
public function pushSource(OutputInterface $output, $modules) {
$this->log($output, "Pushing updated sources to transifex");
Expand All @@ -232,7 +232,8 @@ public function pushSource(OutputInterface $output, $modules) {
'(cd %s && tx push -s)',
$module->getDirectory()
);
$this->runCommand($output, $pushCommand, "Error pushing module {$module} to origin");
$moduleName = $module->getName();
$this->runCommand($output, $pushCommand, "Error pushing module {$moduleName} to origin");
}
}

Expand Down

0 comments on commit 26c3a4c

Please sign in to comment.