Skip to content

LeftHook commit-msg hooks spawn visible shells before executing #4982

@icorbrey

Description

@icorbrey

Version

0.12.26

Operating System

Windows

Distribution Method

msi (Windows)

Describe the issue

I have a Lefthook commit-msg hook that ensures my commit messages are correct semantic commit messages, and it works correctly. However, when run through GitButler it spawns visible shell processes (seemingly while trying to find the system's Lefthook executable since this can be run on many different platforms). This doesn't happen when I commit via the command line or in VSCode.

How to reproduce

  1. Install a commit-msg hook with Lefthook.
  2. Make a change to a file.
  3. Commit the changes.

Expected behavior

No extra windows should appear while waiting for the commit-msg hook to finish.

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedWe would love you to get involved.os:windowsThe Windows platform🦀gitoxide🦀`gitoxide` might help here

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions