[yocto] [eclipse-poky-kepler][PATCH] Fix cloning for a Bitbake Commander Project

Alexandru Georgescu alexandru.c.georgescu at intel.com
Thu Feb 20 07:10:48 PST 2014


Previous commit changed the way YoctoCommand sets a command forcing use of bash.
However cloning a git repo passed the repository as argument, which doesn't work anymore,
fix it by using a single command string.

[YOCTO #5757]

Signed-off-by: Alexandru Georgescu <alexandru.c.georgescu at intel.com>
---
 .../src/org/yocto/bc/ui/wizards/install/InstallWizard.java           | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/install/InstallWizard.java b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/install/InstallWizard.java
index 32a0b4d..f64401c 100644
--- a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/install/InstallWizard.java
+++ b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/install/InstallWizard.java
@@ -148,11 +148,10 @@ public class InstallWizard extends FiniteStateWizard implements
 			CommandResponseHandler cmdHandler = new CommandResponseHandler(RemoteHelper.getConsole(connection));
 			IWizardContainer container = this.getContainer();
 			if (((Boolean)options.get(GIT_CLONE)).booleanValue()) {
-				String cmd = "/usr/bin/git clone --progress";
-				String args = "git://git.yoctoproject.org/poky.git " + uri.getPath();
+				String cmd = "git clone --progress git://git.yoctoproject.org/poky.git " + uri.getPath();
 				String taskName = "Checking out Yocto git repository";
 
-				YoctoRunnableWithProgress adapter = new YoctoRunnableWithProgress(new YoctoCommand(cmd, "", args));
+				YoctoRunnableWithProgress adapter = new YoctoRunnableWithProgress(new YoctoCommand(cmd, "", ""));
 
 				adapter.setRemoteConnection(remoteConnection);
 				adapter.setRemoteServices(remoteServices);
-- 
1.8.5.3




More information about the yocto mailing list