Skip to content

pre-push hook error - no arguments expectedΒ #31

@Rasmus-Bertell

Description

@Rasmus-Bertell

I have a pre-push hook which runs my tests and it works with php artisan git-hooks:pre-push command, but when actually pushing with the command git push I get the following error:

$ git push

  No arguments expected for "git-hooks:pre-push" command, got "origin".

error: failed to push some refs to 'https://************************************'
software version
PHP 8.3.6
git 2.45.0
Laravel Framework 11.5.0
laravel-git-hooks 1.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions