Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342537

Summary: [server] Need to get the remote and branch associated with the checked out local branch
Product: [ECD] Orion Reporter: Szymon Brandys <Szymon.Brandys>
Component: GitAssignee: Project Inbox <orion.git-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: Szymon.Brandys
Version: 0.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Szymon Brandys CLA 2011-04-12 06:37:40 EDT
GET on RemoteLocation returns the list of remotes for the given repository. GET on one of remotes returns the list of branches for the remote.
I need to get somehow the remote and the branch that is associated with the checked out local branch. I think that sorting these lists so the right remote and branch are index 0 is fine for me.
Comment 1 Tomasz Zarna CLA 2011-04-14 07:16:59 EDT
(In reply to comment #0)
> I think that sorting these lists so the right remote and branch are index 0 is fine for me.
Implemented this approach with http://git.eclipse.org/c/e4/org.eclipse.orion.server.git/commit/?id=4f962962f98dcba2090dc5b8d113f655bea7501d.

I'm leaving the bug open to suggest a better solution in the future. Nevertheless, the proposed implementation should be enough to stop blocking bug 339722.
Comment 2 John Arthorne CLA 2015-05-05 14:36:52 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html