Skip to content

Commit 7d83045

Browse files
Don't use -g option for configure command
1 parent 5690b1d commit 7d83045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ComposerPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private function runCaptainCommand(string $command): void
172172

173173
// captainhook config and repository settings
174174
$configuration = ' -c ' . $this->configuration;
175-
$repository = ' -g ' . $this->gitDirectory;
175+
$repository = $command === self::COMMAND_INSTALL ? ' -g ' . $this->gitDirectory : '';
176176
$skip = $command === self::COMMAND_INSTALL ? ' -s' : '';
177177

178178
// sub process settings

0 commit comments

Comments
 (0)