fixed renaming bugs

This commit is contained in:
2019-06-05 09:46:21 +02:00
parent fcc9a80d50
commit d69799f5de
2 changed files with 2 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ class GitService
if (!$this->isGitRepository()) { if (!$this->isGitRepository()) {
return $this->config->get('output.docname'); return $this->config->get('output.docname');
} }
return $this->system->exec('git branch | grep \\\* | cut -d \' \' -f2', self::MODE_LASTLINE); return $this->system->exec('git branch | grep \\\* | cut -d \' \' -f2', SystemService::MODE_LASTLINE);
} }

View File

@@ -46,7 +46,7 @@ class SystemService
* @param int $return * @param int $return
* @return string|int|array * @return string|int|array
*/ */
protected function exec(string $cmd, int $mode = self::MODE_OUTPUT, &$output = array(), int &$return = 0) public function exec(string $cmd, int $mode = self::MODE_OUTPUT, &$output = array(), int &$return = 0)
{ {
$lastline = exec($cmd, $output, $return); $lastline = exec($cmd, $output, $return);
switch ($mode) { switch ($mode) {