Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342537 - [server] Need to get the remote and branch associated with the checked out local branch
Summary: [server] Need to get the remote and branch associated with the checked out lo...
Status: RESOLVED WONTFIX
Alias: None
Product: Orion
Classification: ECD
Component: Git (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 06:37 EDT by Szymon Brandys CLA
Modified: 2015-05-05 14:36 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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