1
0
mirror of https://github.com/QRouland/UTPass.git synced 2026-01-10 03:26:57 +00:00

Initial git clone feature

This commit is contained in:
2025-01-10 13:48:38 +01:00
parent d33932be6d
commit 5e5a092da1
22 changed files with 334 additions and 91 deletions

View File

@@ -3,7 +3,6 @@
#include <QtCore/QDir>
#include "pass.h"
#include "git.h"
#include "gpg.h"
#include "passkeymodel.h"
@@ -22,8 +21,9 @@ void Pass::init(QObject *window)
Gpg::instance()->setWindow(window);
QDir dir(m_password_store);
if (!dir.exists())
if (!dir.exists()) {
dir.mkpath(".");
}
qInfo() << "Password Store is :" << m_password_store;
}
@@ -62,13 +62,3 @@ QVariant Pass::gpgGetAllKeysModel()
Gpg::instance()->getAllKeys().second));
}
QString Pass::getPasswordStore()
{
return m_password_store;
}
bool Pass::gitClone(QString url)
{
qInfo() << "Cloning . password_store from " << url;
return Git::instance()->clone(url, m_password_store);
}