fixed renaming bugs
This commit is contained in:
1 parent
fcc9a80d50
commit
d69799f5de
2 files changed
+2
-2
No files matched your search
@@ -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