Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Several times I've run into an issue where: * My main has diverged from upstream main. * I use `cargo release` to push both main and a tag. In this situation, the tag push succeeds while the push to main fails. This isn't desired and in my case breaks automation, which expects the tag to be an ancestor of main. Use an atomic push to avoid this issue. The man page says: ``` --[no-]atomic Use an atomic transaction on the remote side if available. Either all refs are updated, or on error, no refs are updated. If the server does not support atomic pushes the push will fail. ``` I was a bit worried about the "push will fail" bit, but https://github.blog/2015-04-30-git-2-4-atomic-pushes-push-to-deploy-and-more/ says that atomic pushes were added in 2015. I can't imagine anyone running a 7 year old Git on a server at this point, especially since there have been multiple security vulns in Git since then.
- Loading branch information