fix(Git Command): add special chars support for path (github #53)

Github #53
This commit is contained in:
cubic
2022-03-15 16:28:28 +08:00
parent e396d9bafb
commit 94aea85d4a

View File

@@ -1470,6 +1470,9 @@ class Repository_model extends CI_Model
return FALSE;
}
$branch = Command::wrapArgument($branch);
$filePath = Command::wrapArgument($filePath);
$log = $this->execCommand($rKey, $uKey, GIT_COMMAND_QUERY, $command);
$log = rtrim($log, Helper::getDelimiter() . "\n");
$log = $this->_logStringToArray($log);