felipec / git-remote-bzr

Transparent bidirectional bridge between Git and Bazaar for Git
GNU General Public License v2.0
75 stars 17 forks source link

pushing tags not supported #7

Open vagrantc opened 10 years ago

vagrantc commented 10 years ago

git-remote-bzr seems to import tags from bzr, but doesn't seem able to push them to bzr:

git push --tags To bzr::/tmp/tmp.Uz3tBCm7B1/test ! [remote rejected] test-tags -> test-tags (pushing tags not supported)

It's clearly a known issue, don't know how feasible it would be to implement.

It would definitely be nice, as tagging is maybe the only thing I still need to call bzr directly for...

Thanks so much for git-remote-bzr!

live well, vagrant

mnauw commented 7 years ago

Pushing of tags should be now be possible by commit referenced above (and those preceding it, upgrading to latest HEAD in that repo is also recommended).

As each bazaar branch is actually also a repo of its own, in particular, with its own set of tags, git-remote-bzr needs to decide somehow where to push tags to exactly. It applies some heuristics to decide this automatically if possible (such as only one branch involved). If not possible to auto-determine, the environment variable BZR_BRANCH should be set to the target branch.

So, for example, the command would then be:

BZR_BRANCH=master git push --tags origin