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

18
plugins/Git/git.cpp Normal file
View File

@@ -0,0 +1,18 @@
#include <QUrl>
#include <QtCore/QDir>
#include <QDebug>
#include "git.h"
#include "libgit.h"
Git::Git()
{}
bool Git::clone(QString url, QString path)
{
qInfo() << "Cloning " << url << "password_store to " << path;
QDir dir(path);
dir.removeRecursively(); // TODO see if we delete only after sucessfull clone / Will be change anyway when will add update etc..
return LibGit::instance()->clone(url, path);
}