clearml-agent icon indicating copy to clipboard operation
clearml-agent copied to clipboard

Support `git fetch --tags`

Open reinerp opened this issue 8 months ago • 6 comments

My team is considering an approach where each experiment we run is pushed to a git tag on our repo. Ideally we'd like ClearML to run from that tag.

However, the ClearML agent uses git fetch --all --recurse-submodules on its VCS cache, which only fetches commits from branches, and it ignores commits that are only reachable from tags. Would it be possible to extend the pull command to be git fetch --all --recurse-submodules --tags?

https://github.com/allegroai/clearml-agent/blob/6b31883e4579380ad654afcf0736aaa8074aa1dd/clearml_agent/helper/repo.py#L601

reinerp avatar Jun 17 '24 21:06 reinerp