mirror of
https://github.com/QRouland/UTPass.git
synced 2025-01-24 23:56:39 +00:00
16 lines
412 B
C++
16 lines
412 B
C++
|
#include <QUrl>
|
||
|
#include <QtCore/QDir>
|
||
|
#include <QDebug>
|
||
|
|
||
|
#include "git.h"
|
||
|
#include "libgit.h"
|
||
|
|
||
|
|
||
|
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);
|
||
|
}
|