Skip to content

Problem with PrepareCommitMessage arguments #36

@mariomeyer

Description

@mariomeyer

Right now the src/Console/Commands/stubs/hook file is creating all hooks in .git/hooks calling:

php {artisanPath} {command} $@ >&2

This is passing all the files to the command.

But command git-hooks:prepare-commit-message only receives file which is the commit message file. Thus it's failing by default.

It works though changing that hook to:

php {artisanPath} {command} $1 >&2

Which passes only the commit message file.

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