fixed renaming bugs
This commit is contained in:
@@ -90,7 +90,7 @@ class GitService
|
||||
if (!$this->isGitRepository()) {
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ class SystemService
|
||||
* @param int $return
|
||||
* @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);
|
||||
switch ($mode) {
|
||||
|
||||
Reference in New Issue
Block a user