Skip to content

Malformatted options #340

@StyXman

Description

@StyXman

I'm using git.Git a lot for calling low level git commands; for instance, git commit-tree. In particular, I'm trying to use the -m option, but Git.transform_kwargs() converts m='foo' into -mfoo, which git rejects:

git commit-tree -mfoo e53dc311b7e3ac674f3a6548a22113307a6af3ef -> 128; stdout: '<OUTPUT_STREAM>'; stderr: 'fatal: Not a valid object name -mfoo'

I'm not sure if the current formatting is like so for any particular reason, and I found about the split_single_char_options argument, but there seems to be no way to control that via the API.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions