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
Fix #8188: cannot force push tags #8529
Fix #8188: cannot force push tags #8529
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8529 +/- ##
==========================================
+ Coverage 54.99% 55.11% +0.12%
==========================================
Files 902 903 +1
Lines 65170 65222 +52
Branches 11751 11752 +1
==========================================
+ Hits 35841 35950 +109
+ Misses 26555 26490 -65
- Partials 2774 2782 +8
Flags with carried forward coverage won't be shown. Click here to find out more. |
Force push with lease is there to prevent code stomps.
If you want to make it work. Do a fetch all and review history and make
sure you are ok with overwriting stuff. Rebase as needed and then push.
|
You can't push tags with lease. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Can you please add a test for GetForcePushOption
as well?
Got it. Tags vs commits.
|
I am not sure how I would go about adding a test for this method: 1) it is a |
We test non-public API with a help of
Bummer! But we can fix this :) This should be fairly straight forward, but holler if you get stuck. |
e326aa3
to
d5e7a52
Compare
@RussKie |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
IntegrationTests/UI.IntegrationTests/CommandsDialogs/FormPushTests.cs
Outdated
Show resolved
Hide resolved
d5e7a52
to
2acfdcd
Compare
Please squash and it is ready to go. |
- checking the "force push" option in the tags tab of the push form resulted in passing ForcePushOptions.ForceWithLease to the git push command builder - add a check for the force push checkbox for the tags tab in order to pass the correct ForcePushOptions.Force value to the command builder - add tests for FormPush.GetForcePushOption()
2acfdcd
to
40cb7df
Compare
@RussKie this is good to be merged, thanks! |
Thank you |
Fix #8188: cannot force push tags
Test methodology
Test environment(s)
✒️ I contribute this code under The Developer Certificate of Origin.