Bug 386731 - Exception thrown at commit due to no changes
Summary: Exception thrown at commit due to no changes
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-07 05:41 EDT by Alexander Weickmann CLA
Modified: 2012-08-07 05:41 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Weickmann CLA 2012-08-07 05:41:52 EDT
Steps to reproduce:
1) Create Eclipse Java Project
2) Copy .settings/org.eclipse.jdt.core.prefs somehwere else
3) Overwrite .settings/org.eclipse.jdt.core.prefs from previously copied file
4) Commit

What happens?
org.eclipse.jgit.api.errors.JGitInternalException: No changes
	at org.eclipse.jgit.api.CommitCommand.createTemporaryIndex(CommitCommand.java:419)
	at org.eclipse.jgit.api.CommitCommand.call(CommitCommand.java:194)
	at org.eclipse.egit.core.op.CommitOperation.commit(CommitOperation.java:249)
	at org.eclipse.egit.core.op.CommitOperation.access$7(CommitOperation.java:227)
	at org.eclipse.egit.core.op.CommitOperation$1.run(CommitOperation.java:192)
	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.CommitOperation.execute(CommitOperation.java:202)
	at org.eclipse.egit.ui.internal.commit.CommitUI$2.run(CommitUI.java:220)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

What should happen?
Commit should be disabled