Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334256 - Create branch on origin/master uses "master" as default name for new branch which leads to error
Summary: Create branch on origin/master uses "master" as default name for new branch w...
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 0.10.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 0.11-M2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-13 08:33 EST by Christian Fecht CLA
Modified: 2011-01-13 17:37 EST (History)
2 users (show)

See Also:


Attachments
screen shot of buggy "New Branch" dialogue (12.85 KB, image/png)
2011-01-13 08:36 EST, Christian Fecht CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Fecht CLA 2011-01-13 08:33:05 EST
Build Identifier: EGit / JGit 0.10.1

Hi all,

I use EGit / JGit 0.10.1. I came across an inconvenience in the "Create Branch..." dialogue. When creating a new branch on the remote tracking branch "origin/master", the upcoming dialogue proposes "master" as the name of the new branch. Since there is already a branch "master", this leads immediately to an error in the dialogue (see attached screen shot). 

Kind Regards,
Christian

Reproducible: Always

Steps to Reproduce:
1. Git Repositories View --> Remote Tracking --> origin/master
2. Right mouse click and choose "Create Branch..." from the context menu
3. The "New Branch" dialogue show up with the error message "Ref refs/heads/master already exists"
Comment 1 Christian Fecht CLA 2011-01-13 08:36:18 EST
Created attachment 186721 [details]
screen shot of buggy "New Branch" dialogue
Comment 2 Mathias Kinzler CLA 2011-01-13 12:14:15 EST
After some discussion with Matthias Sohn, I suggest to "fix" this in the way as described in

http://egit.eclipse.org/r/#change,1532
Comment 3 Matthias Sohn CLA 2011-01-13 17:37:24 EST
merged as b3f26272939ab9e5dec5508a0a72290364b75306