-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display a warning before pushing a tag that's not on a commit on the same remote(s) #507
Comments
Hi @rbalet, I just tested this on GitHub to check it's behaviour compared to GitLab. On a GitHub Remote, it pushes the tag and all necessary commits to GitHub, so the tag ends up being on the correct commit. It seems like it might just be GitLab that's doing an unexpected behaviour. Git Graph runs the necessary Git commands, based on what the user has requested in the user interface. In this case, it is correctly running I definitely agree that it would be worthwhile giving users a simple warning prompt if they're trying to push a tag that's not on a commit on the same remote(s). I've found a suitable Git command that can be used to perform this check, as the required information isn't always available in the Git Graph View. I'll implement this in the upcoming release. |
@mhutchie Like, always, thx a lot. I'll open an issue for the gitlab team |
…t isn't on any known branch on the remote(s) the tag is being pushed to.
This will be available in v1.31.0. If you'd like to use it before the next release, you can download v1.31.0-beta.2, and install it following the instructions provided here. |
…mmit that isn't on any known branch on the remote(s) the tag is being pushed to.
Describe the Bug
It's may be a feature request
I'm able to create a tag and push it to the origin without having pushed the latest changes done on the branch.
Steps to Reproduce
Merge commit '355c12592f84670268d6b0c71c5c613eb0d9ffe9'
but since this one wasn't pushed and only exists locally, the tag will exists in the wrong commit (the former one that was pushed)Expected Behaviour
Warn if you would really push a tag in an not pushed branch
The text was updated successfully, but these errors were encountered: