Skip to content

Bug: git push errors with confusing error message when there's nothing to push when using pre-push qlty hook #2229

@noahd1

Description

@noahd1

What happened?

[qltysh/cloud (nd-ghm-schema)] $ git push

   ERROR

 > Missing remote commit ID from Git pre-push input
error: failed to push some refs to 'github.com:qltysh/cloud.git'
[qltysh/cloud (nd-ghm-schema)] $ git push --no-verify
Everything up-to-date
[qltysh/cloud (nd-ghm-schema)] $

What did you expect to happen?

I expected to see "Everything up-to-date" without an error message as if the pre-push hook wasn't there

Can you reproduce the problem?

Yes, consistently

CLI Version

qlty 0.556.0 macos-arm64 (9ed3b48 2025-07-17)

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