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
Push to multiple branches, deletes remote branch as well #7077
Comments
Hi @gerhardol , is somebody looking onto this bug? I'm new here, so not sure what is the progress on this ticket, as it's been 11 days since I posted this. |
Probably not. The Git command log is a good start to investigate. |
I can't reproduce this. So probably not just "simply push to multiple branches". @nomoderator Can you verify with other repositories, or send your git log? There must be something special with your repo. |
@hieuxlu Apologies for the late reply.
Git Command Log: |
@nomoderator I don't have Oracle Cloud account, so can you verify with Github instead? Probably a bug with Oracle Cloud git. |
This looks sus:
|
@nomoderator not sure at this stage, it could be a bug in our code... The above line looks like we are deleting refs. @hieuxlu do you think you could dig through the code and see why we may be issuing the above command? |
@RussKie I would. Think I understand the bug, please assign it to me. It is somehow missing the first part before
|
@nomoderator I think I know the root cause: you haven't checked out local branch before pushing to multiple branches. So a quick work around is check out branches before you push. |
@hieuxlu Interesting. I don't understand what checking out branches before pushing changes. Could you elaborate a little more? |
Confirm @hieuxlu
I'd argue that technically it is not really a bug, because the system acts as specified. However, the UX has room for improvement, because it doesn't do what most users would expect. |
Seem reasonable to me - there is not anything to push for these branches anyway |
We could even not show them at all. Imagine 1000 remote branches. |
@mast-eu Thank you for the insight. But now I've a related query. Then how should I push to multiple branches without any issues? The day I raised this issue, I did select master branch as well (I had a locally assigned folder for it, but it was not showing in the Local Branch column). |
What do you mean by folder? Can you share the folder screenshot so that I could understand? I think you checked out master branch to a different folder outside of this local git repo. And then checked out branch rahul in another local folder. That's why there's only 1 local rahul branch in this local repo. Normally we don't do that. We only check out repo to a local folder once, and in this repo, we check out branches... |
@gerhardol @mast-eu Can we remove all the checkboxes for remote branch without matching local branch, instead of disabling them? I think for the most cases, we only have < 10 local branches, while there can be >100s remote branches. So why don't we hide all the extra push checkboxes? What do you think? |
@hieuxlu Folder structure looks like this: |
@nomoderator That's what I think. You have checked out git twice, to 2 different local repos. |
Or used `git worktree` feature (supported by Gitextensions) instead of
cloning twice...
|
I consider the UI be easier to understand if the control is disabled instead of removed. No question why it disappeared... |
@nomoderator If I understand correctly, you want to push the same changes from 1 local branch to multiple remote branches at the same time. Is this correct? But why all this? It feels way to complicated. What do you try to achieve? |
OK, disabled it is then.
After 4 years using GE, now I know how to use Worktree. Would have saved countless time when I have to check out different folders for develop, master, forks... |
Then it seem better to delete |
Delete it is then... (make it hidden) |
@hieuxlu would this work https://stackoverflow.com/a/10356938/2338036? |
As I said earlier, I dont know how hard coding color will work with upcoming dark theme feature. I consider this to be low priority compared to dark theme. |
I think you can proceed with the fix using the SO suggestion. @NikolayXHD can advise you on the color. |
@RussKie That will trigger an infinite paint loop, so I have to modify a little bit. Anyway, here's the result, the selection state looks strange. For perspective, this is how it looks when hiding checkboxes. Personally I like this better. So should we go on with disabling or hiding? |
nice! I like when the boxes are hidden
…On Wed, Oct 23, 2019, 4:20 PM Hieu Do ***@***.***> wrote:
@RussKie <https://github.com/RussKie> That will trigger an infinite paint
loop, so I have to modify a little bit. Anyway, here's the result, the
selection state looks strange.
[image: image]
<https://user-images.githubusercontent.com/11418231/67360029-12707880-f58f-11e9-98ef-e69ca601477c.png>
For perspective, this is how it looks when hiding checkboxes. Personally I
like this better.
[image: image]
<https://user-images.githubusercontent.com/11418231/67360054-1f8d6780-f58f-11e9-87ef-da4db1e0d7fb.png>
So should we go on with disabling or hiding?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7077?email_source=notifications&email_token=ABBTEXR6LJRWLVRGRADQYADQP7NJ5A5CNFSM4ISJMG5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECAC4SY#issuecomment-545271371>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABBTEXWPLN62MODSYGMZB7LQP7NJ5ANCNFSM4ISJMG5A>
.
|
I conceptually prefer disabling, but not by adding complexity. Suggest to remove |
Current behaviour
Pushing to multiple branch, without selecting "Delete Remote Branch" IS DELETING remote branch
Expected behaviour
Pushing to multiple branch, without selecting "Delete Remote Branch" SHOULD NOT DELETE any remote branch
Steps to reproduce
Simply push to multiple branches, without selecting "Delete Remote Branch" and say bye bye to remote branch
Screenshots
Did this work in previous version of GitExtensions
I'm not sure because I recently started using this functionality
Environment
The text was updated successfully, but these errors were encountered: