Skip to content

Commit 9841400

Browse files
authored
fix: stub copy path (#5)
This pull request includes a minor fix to the `InstallHookCommand` class. The change corrects the file path for the `stubPath` argument to ensure it points to the correct directory. * [`src/Console/InstallHookCommand.php`](diffhunk://#diff-5d89208db5199d01741410b3274e723085c1b35784b745620f4a3a8d57bc582aL29-R29): Updated the default `stubPath` value to fix the directory path from `'/../src/Hooks/commit-msg'` to `'/../Hooks/commit-msg'`.
2 parents 0168166 + ba912e9 commit 9841400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/InstallHookCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(Filesystem $files = null)
2626
public function handle(): int
2727
{
2828
$hookPath = $this->argument('hookPath') ?? base_path('.git/hooks/commit-msg');
29-
$stubPath = $this->argument('stubPath') ?? (__DIR__ . '/../src/Hooks/commit-msg');
29+
$stubPath = $this->argument('stubPath') ?? (__DIR__ . '/../Hooks/commit-msg');
3030

3131
$hooksDir = \dirname($hookPath);
3232
if (!$this->files->exists($hooksDir)) {

0 commit comments

Comments
 (0)