mirror of
https://github.com/QRouland/UTPass.git
synced 2026-01-10 03:26:57 +00:00
Add initial ssh support in git cpp plugin
This commit is contained in:
@@ -30,10 +30,9 @@ bool Git::clone(QString url, QString path, cred_type mode)
|
||||
return false;
|
||||
}
|
||||
auto v = overload {
|
||||
[](const HTTP & x) { return "HTTP"; },
|
||||
[](const HTTPUserPass & x) { return "HTTPAuth"; },
|
||||
[](const SSHPass & x) { return "SSHAuth"; },
|
||||
[](const SSHKey & x) { return "SSHKey"; },
|
||||
[](const HTTP & x) { UNUSED(x); return "HTTP"; },
|
||||
[](const HTTPUserPass & x) { UNUSED(x); return "HTTPAuth"; },
|
||||
[](const SSHKey & x) { UNUSED(x); return "SSHKey"; },
|
||||
};
|
||||
qDebug() << "Creating clone Job " << url << " " << path << " " << std::visit(v, mode);
|
||||
CloneJob *clone_job = new CloneJob(url, path, mode);
|
||||
|
||||
Reference in New Issue
Block a user