public function hasGitConfig($config, $section = 'local', $expectedValue = null)
{
$value = trim($this->processHelper->runCommand(sprintf('git config --%s --get %s', $section, $config), true));
if ('' === $value || null !== $expectedValue && $value !== $expectedValue) {
return false;
}
return true;
}