Skip to content

fetch command error on parsing parameters - 3.1.30+ #1567

@pomareta

Description

@pomareta

Doing
image
repo.remotes.origin.fetch(['--prune', '--prune-tags'])

works well until 3.1.29 version, but when updating to 3.1.30 or 3.1.31 fetch command stops working because it tries to take the parameter --prune as a remote

cmdline: git fetch -v -- origin --prune --prune-tags
stderr: 'fatal: couldn't find remote ref --prune'

image

Thanks for reviewing this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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