Skip to content

incomprehensible errors if repo has any git hooks that display color in terminal #18547

Closed

Description

@cellog

The problem

when a push or commit fails due to git hooks, its output is totally illegible because the hooks use color, and the popup does not render with color

Release version

3.3.14

Operating system

Mac OS 14.4.1 (23E224)

Steps to reproduce the behavior

use git hooks with a tool like lerna, push or commit with a fail state

Log files

No response

Screenshots

image

partial output from terminal:

image

Additional context

No response

Pinned by niik

Activity

  1. added
    bug
    priority-3
    on May 2, 2024
  2. steveward commented on May 2, 2024

    @steveward
    Contributor

    Thanks for reporting this @cellog!

  3. steveward commented on Oct 17, 2024

    @steveward
    Contributor

    Reported in #19415.

  4. niik commented on Jan 14, 2026

    @niik
    Member

    Yesterday we shipped GitHub Desktop 3.5.5-beta1 to our beta channel with improved support for hooks related to committing.

    Screenshot showing the GitHub Desktop commit form as a pre-commit hook is running

    The support is experimental and currently limited to our beta channel. While we believe that this release resolved this issue we're looking for real-world feedback so if you have the ability we'd appreciate it if you could download our beta channel and give it a spin. Ensure the experimental hooks support it's enabled by going to Settings -> Git -> Hooks and making sure the "Load Git hook environment variables from shell" is ticked.

    Screenshot showing the hook settings dialog

    With this new release we're fully supporting all ANSI escape codes related to color and positioning.

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

    bugpriority-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions