Skip to content

Include the git-subtree executable with the included git client #11523

Closed

Description

@bjarnij

Describe the feature or problem you’d like to solve

The GitHub Desktop client includes a git client but that git client doesn't contain the git-subtree executable.
This can cause some problems, for example if the git repository has git hooks that use the git subtree command, those git hooks will fail with the following message:

git: 'subtree' is not a git command. See 'git --help'.

See screenshot below.

Proposed solution

Include the git-subtree executable with the included git client.

The git-subtree executable was included before, at least in some very old GitHub Desktop versions (I've version since 2018 that included it).

I manually copied the git-subtree executable into ~/Applications/GitHub Desktop.app/Contents/Resources/app/git/libexec/git-core/ on my Mac and then the git hooks work as expected but I would need to add the executable after each update of the GitHub Desktop client.

Additional context

Screenshot with the error dialog:
image

Activity

  1. changed the title [-]Include the `git-subtree` executable with the included git client[/-] [+]Include the git-subtree executable with the included git client[/+] on Feb 3, 2021
  2. added
    git
    on Feb 9, 2021
  3. 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
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

    git

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions