The same problem for the 2nd method :
arguments << "clone" << "ssh://user@host:port/Template.git";
process.start( "git", arguments );
QProcess process;
QStringList arguments;
arguments << "clone" << "ssh://user@host:port/Template.git";
process.start( "git", arguments );
To copy to clipboard, switch view to plain text mode
process.start("git clone ssh://user@host:port/Template.git");
if (!process.waitForStarted()) {
qDebug() << "Error : " << process.errorString();
return 1;
}
qDebug() << "No Error ";
process.waitForFinished(-1); // will wait forever until finished
process.start("git clone ssh://user@host:port/Template.git");
if (!process.waitForStarted()) {
qDebug() << "Error : " << process.errorString();
return 1;
}
qDebug() << "No Error ";
process.waitForFinished(-1); // will wait forever until finished
To copy to clipboard, switch view to plain text mode
Console output : No Error ===> Process starts OK ??
I have used QProcess with Gerrit without problems. exmple :
process.start("ssh -p port user@host gerrit create-project test")
process.start("ssh -p port user@host gerrit create-project test")
To copy to clipboard, switch view to plain text mode
===> Creates project in Gerrit OK
Assuming of course that the git program is on your system's executable search path and that you have permission to execute it
How can I be sure of it ??
If Gerrit works without pbs ===> Git also works also ??
Bookmarks