Skip to content

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

@bjarnij

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    gitIssues related to the embedded version of Git that we ship

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions