Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
salahhusa9 committed Oct 21, 2023
1 parent 5355117 commit 28f6b09
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Helpers/Git.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,13 @@ public static function gitPath()
$gitPath = Cache::rememberForever('git_path', function () {
$executableFinder = new \Symfony\Component\Process\ExecutableFinder();

return $executableFinder->find('git');
$gitPath = $executableFinder->find('git');

if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$gitPath = '"'.$gitPath.'"';
}

return $gitPath;
});
}

Expand Down

0 comments on commit 28f6b09

Please sign in to comment.