Skip to content

Doesn't find git root when inside a submodule #152

Description

@adamwight

No hooks are installed when the repo has been cloned as a submodule. In this case, the .git file is plain text pointing to a directory under the parent .git/modules/....

I see code to handle this case, but it is unreachable because the condition here triggers first: https://github.com/observing/pre-commit/blob/master/install.js#L26

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions