Bug 549073 - Push to gerrit suggests branches from all remotes
Summary: Push to gerrit suggests branches from all remotes
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 5.5   Edit
Hardware: PC Windows 10
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-08 12:44 EDT by Michael Keppler CLA
Modified: 2019-07-08 12:44 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Keppler CLA 2019-07-08 12:44:07 EDT
org.eclipse.egit.ui.internal.push.PushToGerritPage.loadKnownRemoteRefs() suggests all branches from all remotes.

Quote of Thomas from https://git.eclipse.org/r/#/c/145559/2/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/push/PushToGerritPage.java:

I work on two machines, each with its own clone of EGit. Sometimes I fetch from one machine to the other, so my repo has two remotes: "origin" pointing to Gerrit, and "other" pointing to my other machine. Fetching from "other" gives me all the other's local branches as remotes. Push to Gerrit then proposes me not only "master" and the "stable-*" branches from "origin" but also all these other remote branches coming from "other". It shouldn't do that.