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

Bug 381379

Summary: Can't checkout a remote branch
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: GitAssignee: Project Inbox <orion.git-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: simon_kaegi
Version: 0.5   
Target Milestone: 9.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 381574    

Description Mark Macdonald CLA 2012-06-01 10:22:51 EDT
orion.eclipse.org @ Build id: I20120530-0918

There is a remote branch 'origin/config' that I want to checkout. (I have no local remote-tracking branch for it yet).

1. Go to Repository > Branches > View All > Remote Branches
2. Scroll down to origin/config, click Checkout
3. Errors appear in the console. The branch does not get checked out.

This is the error returned by the server:
{
    "HttpCode": 500,
    "DetailedMessage": "Not a ref: config: [core]\n\trepositoryformatversion = 0\n\tfilemode = false\n\tlogallrefupdates = true\n\tautocrlf = false\n[remote \"origin\"]\n\turl = ssh://mmacdonald@dev.eclipse.org/gitroot/orion/org.eclipse.orion.client.git\n\tfetch = +refs/heads/*:refs/remotes/origin/*\n[branch \"master\"]\n\tremote = origin\n\tmerge = refs/heads/master\n[user]\n\tname = Mark Macdonald\n\temail = mamacdon@ca.ibm.com\n[remote \"github\"]\n\turl = git@github.com:mamacdon/orion.client.git\n\tfetch = +refs/heads/*:refs/remotes/github/*\n[branch \"bug369289\"]\n\tremote = github\n\tmerge = refs/heads/bug369289\n[branch \"bug371273\"]\n\tremote = origin\n\tmerge = refs/heads/bug371273\n[branch \"bug371128_github\"]\n\tremote = origin\n\tmerge = refs/heads/bug371128_github\n[branch \"bug369923DOMEvent\"]\n\tremote = origin\n\tmerge = refs/heads/bug369923DOMEvent\n[branch \"bug369923\"]\n\tremote = origin\n\tmerge = refs/heads/bug369923\n[branch \"bug371696_2\"]\n\tremote = origin\n\tmerge = refs/heads/bug371696_2\n[branch \"css04RC3\"]\n\tremote = origin\n\tmerge = refs/heads/css04RC3\n[branch \"iconsprites04RC3\"]\n\tremote = origin\n\tmerge = refs/heads/iconsprites04RC3\n[branch \"bug371262\"]\n\tremote = origin\n\tmerge = refs/heads/bug371262\n[branch \"Bug371015\"]\n\tremote = origin\n\tmerge = refs/heads/Bug371015\n[branch \"bug365819_tmstest\"]\n\tremote = origin\n\tmerge = refs/heads/bug365819_tmstest\n[branch \"orionhome\"]\n\tremote = origin\n\tmerge = refs/heads/orionhome\n[branch]\n\tautosetuprebase = always\n[branch \"cleanupAnnotations\"]\n\tremote = origin\n\tmerge = refs/heads/cleanupAnnotations",
    "Message": "An error occured when creating a branch.",
    "Severity": "Error",
    "Code": 0
}

I also tried pulling the latest client code into my self-hosting site, and repeating these steps. I got the same error...
Comment 1 Mark Macdonald CLA 2012-06-01 10:27:57 EDT
I thought perhaps this was due to a corrupt repo, but I tried running the steps on a brand-new clone of orion.client, and I get the same error.
Comment 2 Simon Kaegi CLA 2012-06-01 12:20:39 EDT
Szymon could you take a look at this...
Comment 3 Szymon Brandys CLA 2012-06-01 14:35:05 EDT
That's interesting. It seems like the problem is when the branch name is 'config'. I see the same problem when I want to create a local branch named 'config'. I'll fix that.
Comment 4 Szymon Brandys CLA 2012-06-04 10:11:46 EDT
This is a problem with JGit. See bug 381574.
Comment 5 Szymon Brandys CLA 2015-04-01 10:07:18 EDT
This is doable on the new page.