Skip to content

No 777 on hook leads to commit failed  #113

Description

@weimengxi

the default access mode of node_modules/pre-commit/hook file is -rw-r--r-- , and when i exec commit operation, it just show me one line of message , which is:

error message
.git/hooks/pre-commit: line 2: ./node_modules/pre-commit/hook: Permission denied

image

I've tried exec change mode of the node_modules/pre-commit/hook file to 777 roughly。 Fortunately, it WORKS。 However, i don't think it's the right way to fix this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions