Fix if 'git' instead of 'git.exe' as command is used on windows (#168)

This commit is contained in:
peterpeter 2016-06-25 22:44:10 +02:00 committed by Chris Davenport
parent d840a7f50b
commit bf118c40df
1 changed files with 10 additions and 2 deletions

View File

@ -65,10 +65,18 @@ class RoboFile extends \Robo\Tasks
private function getExecutableExtension()
{
if ($this->isWindows())
{
// check wehter git.exe or git as command should be used,
// as on window both is possible
if(!$this->_exec('git.exe --version')->getMessage())
{
return '';
}
else
{
return '.exe';
}
}
return '';
}