Skip to content

Error given when a push fails due to hook failure is not useful #517

Description

@matthewhively

I have a pre-push hook setup on my local repos.

When I try gh stack sync it results in this:
Pushing 3 branches to origin...
⚠ Push failed — branches may need force push after rebase

When I try gh stack push it results in this:
Pushing 3 branches to origin...
✗ failed to push: failed to run git: error: failed to push some refs to 'github.com:<my_repo>'

When I try gh stack submit it results in this:
Pushing to origin...
✗ failed to push <my_branch>: failed to run git: error: failed to push some refs to 'github.com:<my_repo>'

Eventually I was able to guess it was my pre-push hook and tried a regular push and it told me what the error was immediately.

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