Commit 53613f19 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Adapted to the recent changes in master (import wizard).

parent 4e92002c
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include <vcs/vcsevent.h> #include <vcs/vcsevent.h>
#include <vcs/dvcs/dvcsjob.h> #include <vcs/dvcs/dvcsjob.h>
#include <vcs/vcsannotation.h> #include <vcs/vcsannotation.h>
#include <vcs/widgets/standardvcslocationwidget.h>
#include <QDateTime> #include <QDateTime>
#include <KIO/CopyJob> #include <KIO/CopyJob>
...@@ -164,10 +165,7 @@ VcsJob* GitPlugin::createWorkingCopy(const KDevelop::VcsLocation & localOrRepoLo ...@@ -164,10 +165,7 @@ VcsJob* GitPlugin::createWorkingCopy(const KDevelop::VcsLocation & localOrRepoLo
{ {
DVcsJob* job = new DVcsJob(this); DVcsJob* job = new DVcsJob(this);
if (prepareJob(job, localRepositoryRoot.toLocalFile(), GitPlugin::Init) ) { if (prepareJob(job, localRepositoryRoot.toLocalFile(), GitPlugin::Init) ) {
*job << "git"; *job << "git" << "clone" << "--" << localOrRepoLocationSrc.localUrl().prettyUrl();
*job << "clone";
*job << "--";
*job << localOrRepoLocationSrc.localUrl().toLocalFile();
return job; return job;
} }
delete job; delete job;
...@@ -1073,3 +1071,7 @@ VcsJob* GitPlugin::update(const KUrl::List& localLocations, const KDevelop::VcsR ...@@ -1073,3 +1071,7 @@ VcsJob* GitPlugin::update(const KUrl::List& localLocations, const KDevelop::VcsR
return empty_cmd(); return empty_cmd();
} }
KDevelop::VcsLocationWidget* GitPlugin::vcsLocation(QWidget* parent) const
{
return new KDevelop::StandardVcsLocationWidget(parent);
}
...@@ -87,6 +87,7 @@ public: ...@@ -87,6 +87,7 @@ public:
virtual KDevelop::VcsJob* repositoryLocation(const KUrl& localLocation); virtual KDevelop::VcsJob* repositoryLocation(const KUrl& localLocation);
virtual KDevelop::VcsJob* resolve(const KUrl::List& localLocations, RecursionMode recursion); virtual KDevelop::VcsJob* resolve(const KUrl::List& localLocations, RecursionMode recursion);
virtual KDevelop::VcsJob* update(const KUrl::List& localLocations, const KDevelop::VcsRevision& rev, RecursionMode recursion); virtual KDevelop::VcsJob* update(const KUrl::List& localLocations, const KDevelop::VcsRevision& rev, RecursionMode recursion);
KDevelop::VcsLocationWidget* vcsLocation(QWidget* parent) const;
//End of //End of
KDevelop::VcsJob* add(const KUrl::List& localLocations, KDevelop::VcsJob* add(const KUrl::List& localLocations,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment