Skip to content

Add shared helper for listing Git tags via git ls-remote #735

@ziadhany

Description

@ziadhany

We currently duplicate logic for listing tags via git ls-remote purl2vcs/find_source_repo.py#L384

Create a single shared helper (e.g. list_tags_via_ls_remote) to avoid duplication and provide consistent behavior.

Refs:

result = subprocess.run(
            [git_executable, "ls-remote", repo_url],
            capture_output=True,
            text=True,
            check=True,
            timeout=timeout,
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions