Skip to content

Check if .git/hooks/pre-commit file exists #16

Description

@lcidral

As reported by @amadeu01, there is a possibility of developer has .git/hooks/pre-commit, if so we can't overwrite it, returning an error when running git pair init.

We also, discussed to introduce a script to create a pre-commit file that would iterate over .git/hooks/pre-commits directory then call it script under it (including our git-pair _append-coauthors call). But I think that we should create a separate issue for this one. WDYT?

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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions