Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339093 - Cherry Pick: in case of conflicts a commit leads to an error
Summary: Cherry Pick: in case of conflicts a commit leads to an error
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 0.12   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-07 10:04 EST by Stefan Lay CLA
Modified: 2012-12-30 17:27 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Lay CLA 2011-03-07 10:04:09 EST
When I have a conflict after cherry picking the commit command is enabled, but leads to an error:

org.eclipse.team.core.TeamException: Committing changes
	at org.eclipse.egit.core.op.CommitOperation$1.run(CommitOperation.java:183)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1782)
	at org.eclipse.egit.core.op.CommitOperation.execute(CommitOperation.java:194)
	at org.eclipse.egit.ui.internal.commit.CommitUI$2.run(CommitUI.java:237)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.jgit.errors.NotSupportedException: Cannot work with other stages than zero right now. Won't write corrupt index.
	at org.eclipse.jgit.lib.GitIndex.checkWriteOk(GitIndex.java:349)
	at org.eclipse.jgit.lib.GitIndex.write(GitIndex.java:269)
	at org.eclipse.egit.core.op.CommitOperation.doCommits(CommitOperation.java:311)
	at org.eclipse.egit.core.op.CommitOperation.access$8(CommitOperation.java:297)
	at org.eclipse.egit.core.op.CommitOperation$1.run(CommitOperation.java:180)
	... 5 more
Comment 1 Robin Stocker CLA 2012-10-11 16:22:27 EDT
Is this still the case?
Comment 2 Robin Rosenberg CLA 2012-12-30 17:27:27 EST
I assume this is fixed. Commit gives a clear message that it refused to commit due to unresolved conflicts.