Skip to content

Cherry-picking into a branch with a failing Git hook fails with no feedback #16369

Closed

Description

@Jiralite

The problem

When cherry-picking a commit into a branch with conflicts that fails Git hooks (in my case, husky), GitHub Desktop switches back to the prior branch with no changes (or errors).

I have uploaded a video for additional context. If you watch this very closely and very carefully, you can see for a split second there is an error modal that dismisses immediately.

Release version

3.2.1-beta2 (arm64)

Operating system

macOS Ventura 13.2.1

Steps to reproduce the behavior

Ensure you have two branches where the target branch utilises husky.

  1. Cherry-pick a commit from the source branch to the target branch
  2. There must be a conflict. Resolve it
  3. Ensure husky fails (hardcode exit 1)

Log files

2023-03-23.desktop.beta.log

Screenshots

No response

Additional context

16369-1.mp4

Activity

  1. steveward commented on Mar 24, 2023

    @steveward
    Contributor

    Thanks for the issue @Jiralite, I'm going to group this into #15286.

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