1
0
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:
2025-01-20 11:23:40 +01:00
parent c0757da47b
commit 0eb8920856
13 changed files with 74 additions and 56 deletions

@ -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) {