You've already forked laravel-hooks
fixes
This commit is contained in:
@@ -31,7 +31,7 @@ class InstallCommand extends Command
|
||||
$git_directory = base_path('.git');
|
||||
$git_hooks_directory = "{$git_directory}/hooks";
|
||||
|
||||
$this->line("Checking Git hooks directory...");
|
||||
$this->line("Updating Git hooks...");
|
||||
|
||||
if (! is_dir($git_directory)) {
|
||||
$this->error("Could not install hooks: $git_directory is not a Git repository");
|
||||
@@ -61,6 +61,10 @@ class InstallCommand extends Command
|
||||
$this->error("Could not install hooks: could not create Git hook file $git_hook_file");
|
||||
return 1;
|
||||
}
|
||||
|
||||
passthru("chmod +x $git_hook_file");
|
||||
|
||||
$this->line("Installed Git hook file: $git_hook_file");
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user