Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357781 - Exception during execution of fetch command when refs/notes/review is not available
Summary: Exception during execution of fetch command when refs/notes/review is not ava...
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 critical with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 360082 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-15 07:45 EDT by Sascha Scholz CLA
Modified: 2011-10-28 16:42 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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