Skip to content

Commit 33c2bfd

Browse files
Fixed git path
1 parent b9c3028 commit 33c2bfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Helpers/Git.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function currentBranch(?string $path = null): ?string
2424

2525
protected function exec(string $command, ?string $path = null): ?string
2626
{
27-
return exec(sprintf('git --git-dir "%s" %s', $path, $command));
27+
return exec(sprintf('git -C "%s" %s', $path, $command));
2828
}
2929

3030
protected function hasGitDirectory(?string $path = null): bool

0 commit comments

Comments
 (0)