mirror of
https://github.com/QRouland/UTPass.git
synced 2025-07-20 01:12:29 +00:00
Fix delete gpg key
This commit is contained in:
plugins
po
qml/pages
@ -30,10 +30,10 @@ bool Git::clone(QString url, QString path, cred_type mode)
|
||||
return false;
|
||||
}
|
||||
auto v = overload {
|
||||
[](const HTTP & x) { return "HTTP"; },
|
||||
[](const HTTP & x) { return "HTTP"; },
|
||||
[](const HTTPUserPass & x) { return "HTTPAuth"; },
|
||||
[](const SSHPass & x) { return "SSHAuth"; },
|
||||
[](const SSHKey & x) { return "SSHKey"; },
|
||||
[](const SSHPass & x) { return "SSHAuth"; },
|
||||
[](const SSHKey & x) { return "SSHKey"; },
|
||||
};
|
||||
qDebug() << "Creating clone Job " << url << " " << path << " " << std::visit(v, mode);
|
||||
CloneJob *clone_job = new CloneJob(url, path, mode);
|
||||
|
@ -19,7 +19,8 @@ CloneJob::CloneJob(QString url, QString path, cred_type cred):
|
||||
}
|
||||
|
||||
|
||||
void CloneJob::run() {
|
||||
void CloneJob::run()
|
||||
{
|
||||
auto tmp_dir = this->cloneSetup();
|
||||
auto err = this->clone(this->m_url, tmp_dir.absolutePath(), this->m_cred, this->credentialsCB);
|
||||
if (err) {
|
||||
|
Reference in New Issue
Block a user