Skip to content

Marketplace fetch w/ ref shouldn't do a git pull #1515

@tlmii

Description

@tlmii

Describe the bug

When fetching a marketplace repo (github or git url), the CLI does a git pull --ff-only regardless of whether there's a ref specified in the marketplace definition. This can lead to a failure depending on what the ref specifies (branch should be ok, tag or commit may not be). The plugin repo fetching does this correctly, I believe, so that logic likely just needs to be ported over.

Affected version

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions