Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"laravel/pint": "^1.2",
"mockery/mockery": "^1.5.1",
"larastan/larastan": "^2.9",
"orchestra/testbench": "^v8.0.0|^v9.0.0",
"orchestra/testbench": "^v7.0.0|^v8.0.0|^v9.0.0",
"pestphp/pest": "^2.0",
"squizlabs/php_codesniffer": "^3.7"
},
Expand Down
11 changes: 11 additions & 0 deletions config/git-hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,4 +290,15 @@
|
*/
'debug_commands' => false,

/*
|--------------------------------------------------------------------------
| Git hooks path
|--------------------------------------------------------------------------
|
| This configuration option allows you to configure where the git hooks
| are stored for this project, you might need to change this if you
| are using git submodules as part of a wider project.
*/
'git_hooks_path' => base_path('.git'.DIRECTORY_SEPARATOR.'hooks'),
];
2 changes: 1 addition & 1 deletion src/GitHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ public function getHookStub()
*/
public function getGitHooksDir()
{
return base_path('.git'.DIRECTORY_SEPARATOR.'hooks');
return config('git-hooks.git_hooks_path', base_path('.git'.DIRECTORY_SEPARATOR.'hooks'));
}
}