Repository navigation
[rebase] enable --force-with-lease after rebasing - #6981
Conversation
f113389 to
29b5d2e
Compare
97e2cfe to
02e1a74
Compare
25bdc88 to
09628d1
Compare
1e170de to
0cbf103
Compare
826ba76 to
8ea1c17
Compare
8ea1c17 to
03b5fdb
Compare
116a7c4 to
35f72e0
Compare
35f72e0 to
8f8b05b
Compare
Co-Authored-By: Markus Olsson <[email protected]> Co-Authored-By: Amanda Pinsker <[email protected]>
8f8b05b to
67bcaf3
Compare
|
Moving this to |
| return | ||
| } | ||
|
|
||
| // TODO: transition to a rebase progress dialog |
There was a problem hiding this comment.
Non-blocking
Is there a PR for this piece or is this todo for a later date?
There was a problem hiding this comment.
This isn't found in a PR currently, but #6962 is the related issue and this requires reworking the flow between components
Co-Authored-By: shiftkey <[email protected]>
|
🍎 |
|
From a conversation @shiftkey and I had around not specifying the iamwillshepherd I’m a bit curious about using the Note that all forms other than --force-with-lease=: that specifies the expected current value of the ref explicitly are still experimental and their semantics may change as we gain experience with this feature. A general note on safety: supplying this option without an expected value, i.e. as --force-with-lease or --force-with-lease= interacts very badly with anything that implicitly runs git fetch on the remote Desktop implicitly runs fetch on a schedule and it would seem doing that can get us into deep trouble as it seems git will overwrite any refs that you’ve seen (it’s the heuristic currently in use) shiftkey so we've had this manifest before with background fetching, but i believe #6141 has closed out the majority of these (edited) iamwillshepherd Naw, I don’t think it’s the error that’s bad, I think it’s the overwriting of refs that’s bad shiftkey aha, right, external processes |
|
@tierninho I think this was a side-effect of how the I was nervous about making changes in here, and wrote up #6985 to call this out. I'm about to get #7042 ready for review which should make this state impossible to achieve: desktop/app/src/ui/toolbar/push-pull-button.tsx Lines 252 to 269 in 577cfef |


Overview
Closes #6913
Description
This PR touches a few areas to enable
--force-with-leaseafter a rebased is completed in the app:pushnow has the ability to set--force-with-leaseTODO:
Release notes
Notes:
[Improved] users are able to force push branches that were rebased within Desktop