Skip to content

Fails when force pushing unrelated histories #2002

@bogusfocused

Description

@bogusfocused

pre-commit looks to find difference between remote and local branches as pre-commit wants to know the files changed. But in case of force, git correctly fails to generate diff.

Expected: pre-commit can run all the hooks that has pass-filename=false as they do not require diffs.

Thanks for the awesome stuff!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions