aboutcode-org / aboutcode-org/purldb
Add shared helper for listing Git tags via git ls-remote
- 主要语言
- HTML
- 星标
- 67
- 派生
- 69
- 平均合并
- 8 天 8 小时
- 30 天内合并 PR
- 1
描述
We currently duplicate logic for listing tags via git ls-remote [purl2vcs/find_source_repo.py#L384](https://github.com/aboutcode-org/purldb/blob/c468a762a13286e857ca236ebf7dadb5be157c57/purl2vcs/src/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:
- https://github.com/aboutcode-org/purldb/pull/725
- https://github.com/aboutcode-org/vulnerablecode/issues/493
- https://github.com/gitpython-developers/GitPython/blob/2d4c54154bc984f5dafde1b23e377e2dc3214cb8/test/lib/helper.py#L307
- minecode_pipelines/miners/swift.py
```
result = subprocess.run(
[git_executable, "ls-remote", repo_url],
capture_output=True,
text=True,
check=True,
timeout=timeout,
)
```
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。