Git-subrepo: Ability to push tags to subrepos?

Created on 19 May 2016  路  5Comments  路  Source: ingydotnet/git-subrepo

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.

Enhancement

Most helpful comment

I'd love a git subrepo push foo --tag=v1.2.3!

All 5 comments

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 ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brianjmurrell picture brianjmurrell  路  5Comments

chrisdtaylor picture chrisdtaylor  路  6Comments

kohlhase picture kohlhase  路  3Comments

keithn picture keithn  路  5Comments

danielbsig picture danielbsig  路  7Comments