Skip to content

roborev init hook fails when appended after hooks with early exits #298

@austin3dickey

Description

@austin3dickey

Hi!

I noticed roborev init appends its post-commit block to the end of an existing post-commit hook. If the existing hook contains an early exit 0 (e.g., from husky), the roborev block is never reached.

Repro

  1. Have a repo with a husky 0.13 post-commit hook that includes has_hook_script postcommit || exit 0
  2. Run roborev init
  3. Commit — roborev enqueue never runs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions