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

Bug 360078

Summary: Can not use other remote name then 'origin' for gerrit
Product: [Technology] EGit Reporter: Thomas Koch <thomas>
Component: UIAssignee: Stefan Lay <stefan.lay>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matthias.sohn, remy.suen
Version: 1.1   
Target Milestone: 1.2-M1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Thomas Koch CLA 2011-10-06 06:40:04 EDT
What steps will reproduce the problem?
1.  Open file -> import -> projects from git
2.  select clone
3.  enter details for a gerrit instance
4.  in "local destination" replace remote name 'origin' with 'gerrit'
5. in the next wizard window select "setup project with gerrit"

Without step 5 the clone works.

-- Error Details --
Date: Thu Oct 06 12:32:07 CEST 2011
Message: Git repository clone failed.
Severity: Error
Product: Eclipse 1.4.1.20110909-0613 (org.eclipse.epp.package.java.product)
Plugin: org.eclipse.egit.ui
Session Data:
eclipse.buildId=M20110909-1335
java.version=1.6.0_23
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product

Exception Stack Trace:
org.eclipse.core.runtime.CoreException: Invalid remote: origin
	at org.eclipse.egit.core.op.ConfigureFetchAfterCloneTask.execute(ConfigureFetchAfterCloneTask.java:55)
	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$4.run(GitCloneWizard.java:261)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: origin
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:142)
	at org.eclipse.egit.core.op.ConfigureFetchAfterCloneTask.execute(ConfigureFetchAfterCloneTask.java:53)
	... 5 more
Caused by: org.eclipse.jgit.errors.NoRemoteRepositoryException: origin: not found.
	at org.eclipse.jgit.transport.TransportLocal$1.open(TransportLocal.java:130)
	at org.eclipse.jgit.transport.TransportBundleFile$1.open(TransportBundleFile.java:105)
	at org.eclipse.jgit.transport.Transport.open(Transport.java:546)
	at org.eclipse.jgit.transport.Transport.open(Transport.java:306)
	at org.eclipse.jgit.transport.Transport.open(Transport.java:277)
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:124)
	... 6 more

-- Error Details --
Date: Thu Oct 06 12:32:07 CEST 2011
Message: Invalid remote: origin
Severity: Error
Product: Eclipse 1.4.1.20110909-0613 (org.eclipse.epp.package.java.product)
Plugin: org.eclipse.egit.core
Exception Stack Trace:
org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: origin
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:142)
	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$4.run(GitCloneWizard.java:261)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.jgit.errors.NoRemoteRepositoryException: origin: not found.
	at org.eclipse.jgit.transport.TransportLocal$1.open(TransportLocal.java:130)
	at org.eclipse.jgit.transport.TransportBundleFile$1.open(TransportBundleFile.java:105)
	at org.eclipse.jgit.transport.Transport.open(Transport.java:546)
	at org.eclipse.jgit.transport.Transport.open(Transport.java:306)
	at org.eclipse.jgit.transport.Transport.open(Transport.java:277)
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:124)
	... 6 more
Comment 1 Stefan Lay CLA 2011-10-28 07:36:41 EDT
Fix proposed
Comment 2 Stefan Lay CLA 2011-10-28 07:37:03 EDT
http://egit.eclipse.org/r/4429
Comment 3 Matthias Sohn CLA 2011-10-28 16:21:09 EDT
merged as 5ccec807b92cd0d2bb869ec3ac8f54e4e7871b4f