Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366691 - Cannot create or switch to branch from Eclipse without getting errors
Summary: Cannot create or switch to branch from Eclipse without getting errors
Status: CLOSED WORKSFORME
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 1.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 08:32 EST by Sebastien Tardif CLA
Modified: 2013-01-07 19:20 EST (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 Sebastien Tardif CLA 2011-12-14 08:32:25 EST
What steps will reproduce the problem?
1. Try create a branch using remote branch has the starting point 
2. Try to switch to the newly created branch



-- Error Details --
Date: Wed Dec 14 08:24:44 EST 2011
Message: Branch failed
Severity: Error
Product: SpringSource Tool Suite 2.8.1.201111221000-RELEASE (com.springsource.sts.ide)
Plugin: org.eclipse.egit.ui
Session Data:
eclipse.buildId=2.8.1.201111221000-RELEASE
java.version=1.6.0_29
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product com.springsource.sts.ide
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product com.springsource.sts.ide

Exception Stack Trace:
org.eclipse.core.runtime.CoreException: Cannot lock C:\repos\git\ops\.git\index
	at org.eclipse.egit.core.op.BranchOperation$1.run(BranchOperation.java:86)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2326)
	at org.eclipse.egit.core.op.BranchOperation.execute(BranchOperation.java:103)
	at org.eclipse.egit.ui.internal.branch.BranchOperationUI$1.run(BranchOperationUI.java:162)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.jgit.api.errors.JGitInternalException: Cannot lock C:\repos\git\ops\.git\index
	at org.eclipse.jgit.api.CheckoutCommand.call(CheckoutCommand.java:212)
	at org.eclipse.egit.core.op.BranchOperation$1.run(BranchOperation.java:84)
	... 5 more
Caused by: java.io.IOException: Cannot lock C:\repos\git\ops\.git\index
	at org.eclipse.jgit.dircache.DirCache.lock(DirCache.java:188)
	at org.eclipse.jgit.lib.Repository.lockDirCache(Repository.java:886)
	at org.eclipse.jgit.api.CheckoutCommand.call(CheckoutCommand.java:159)
	... 6 more
Comment 1 Robin Rosenberg CLA 2013-01-07 19:20:51 EST
Not enough info, old version. If you can repeat with latest build, please re-open.