We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents be7aea8 + 33c2bfd commit 0cc1dd3Copy full SHA for 0cc1dd3
src/Helpers/Git.php
@@ -24,7 +24,7 @@ public function currentBranch(?string $path = null): ?string
24
25
protected function exec(string $command, ?string $path = null): ?string
26
{
27
- return exec(sprintf('git --git-dir "%s" %s', $path, $command));
+ return exec(sprintf('git -C "%s" %s', $path, $command));
28
}
29
30
protected function hasGitDirectory(?string $path = null): bool
0 commit comments