Hi,
i very much like the subrepo module and it helped us a lot cleaning up our microservice based repository structure.
However, I am missing one feature (or overlook it): is it possible to push tags to the subrepos? Currently I am doing that by checking the specific subrepo as a regular repository in a separate directory in order to set tags.
If you have a subrepo called foo and you:
git subrepo push foo
and you want to tag it with v1.2.3 you can then:
git push <foo-repo-url> refs/subrepo/foo/push:refs/tags/v1.2.3
That should be easier for you. I think what you would like to see is something like:
git subrepo push foo --tag=v1.2.3
I don't see a problem with that, but it's also low priority.
Any thoughts out there? Any takers?
Ah very interesting approach thank you! That indeed helps.
Probably a first step could be to take this into the docs?
I'd love a git subrepo push foo --tag=v1.2.3!
I'd love this too, particularly if there was an easy way to tag a specific subrepo.
in addition, does anyone sees an easy way to propagate a tag from the main repo to only the subrepos contributing to the changes on the main repo, in one command?
a sort of smart git subrepo tag -a v1.2.3
This way we could mitigate the risk of omitting one sub repo when tagging sub repos subsequently to a release on the master repo.
Thoughts ?
Most helpful comment
I'd love a
git subrepo push foo --tag=v1.2.3!