your-tools / tbump

Bump software releases
BSD 3-Clause "New" or "Revised" License
158 stars 22 forks source link

Push the commits and the tag simoultaneously #117

Closed InCogNiTo124 closed 3 years ago

InCogNiTo124 commented 3 years ago

Instead of pushing twice, which spawns two workflows, how about using something along the lines of

git push --atomic origin <branch name> <tag>

What are your thoughts on that?

dmerejkowsky commented 3 years ago

Looks like a good idea. Do you want to try and write a patch for this ?

InCogNiTo124 commented 3 years ago

Looks like a good idea. Do you want to try and write a patch for this ?

Sure. I'll try to do this week :))

dmerejkowsky commented 3 years ago

Fixed in #118

mihaiginta commented 2 years ago

Is there a way to deactivate the --atomic flag? My remote does not support it

InCogNiTo124 commented 2 years ago

Is there a way to deactivate the --atomic flag?

Not at the moment. A workaround would be to push the tag separately, I guess?

dmerejkowsky commented 2 years ago

A workaround would be to push the tag separately, I guess?

Indeed. Something like tbump 1.2.3 --no-tag-push ; git push origin v1.2.3