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.
1 parent b9c3028 commit 33c2bfdCopy full SHA for 33c2bfd
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