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

Bug 357781

Summary: Exception during execution of fetch command when refs/notes/review is not available
Product: [Technology] EGit Reporter: Sascha Scholz <sascha.scholz>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: jens.baumgart, matthias.sohn, philipp, remy.suen, thomas
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Sascha Scholz CLA 2011-09-15 07:45:32 EDT
Current EGit snapshot automatically fetches review notes from Gerrit if Gerrit configuration is enabled in clone wizard. This fails for projects where no review has been conducted yet. In that case the import fails, and the following stack trace is available in the error log:

org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of fetch command
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:145)
	at org.eclipse.egit.core.op.ConfigureFetchAfterCloneTask.execute(ConfigureFetchAfterCloneTask.java:53)
	at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:147)
	at org.eclipse.egit.ui.internal.clone.GitCloneWizard.executeCloneOperation(GitCloneWizard.java:306)
	at org.eclipse.egit.ui.internal.clone.GitCloneWizard.access$3(GitCloneWizard.java:299)
	at org.eclipse.egit.ui.internal.clone.GitCloneWizard$5.run(GitCloneWizard.java:278)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.jgit.errors.TransportException: Remote does not have refs/notes/review available for fetch.
	at org.eclipse.jgit.transport.FetchProcess.expandSingle(FetchProcess.java:349)
	at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:139)
	at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:113)
	at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1062)
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:136)
	... 6 more
Comment 1 Jens Baumgart CLA 2011-09-21 08:53:33 EDT
Fix proposed: http://egit.eclipse.org/r/4278
Comment 2 Kevin Sawicki CLA 2011-10-07 11:52:27 EDT
*** Bug 360082 has been marked as a duplicate of this bug. ***
Comment 3 Stefan Lay CLA 2011-10-28 07:05:56 EDT
New proposal on Gerrit: http://egit.eclipse.org/r/#change,4428
Comment 4 Matthias Sohn CLA 2011-10-28 16:42:50 EDT
second proposed patch merged as e44e3d439044d17a7e4ec7e4e7b419ac26a3c338