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

Bug 400066

Summary: Pushing branch to a new remote branch when there branch.remote entry in config already exists doesn't work
Product: [ECD] Orion Reporter: Malgorzata Janczarska <malgorzata.tomczyk>
Component: GitAssignee: Malgorzata Janczarska <malgorzata.tomczyk>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Szymon.Brandys
Version: 2.0   
Target Milestone: 2.0 RC1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Malgorzata Janczarska CLA 2013-02-06 04:43:39 EST
1. create local branch
2. create config entry branch.remote
3. try to push the branch, but instead for pushing to default remote branch try to push it to newly created branch
This is what you get:
POST /gitapi/config/clone/file/A/gotom/ 409 conflicting
{"HttpCode":409,"Message":"Config entry for branch.tear/gccdd/oh.remote already exists","Severity":"Error","Code":0}
PUT /gitapi/config/branch.tear/gccdd/oh.remote/clone/file/A 500 HTTP method GET is not supported
if you do it on log there is not error message on the UI.

First we should avoid creating remote config entry if it already exists, second we should return some kind of better error, third, we should display the error on UI.
Comment 1 Malgorzata Janczarska CLA 2013-02-06 13:01:26 EST
Fixed.