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

Only add files in case it's needed.

parent 9053542a
......@@ -369,8 +369,10 @@ void GitPlugin::addNotVersionedFiles(const QDir& dir, const KUrl::List& files)
toadd += file;
}
VcsJob* job = add(toadd);
job->exec();
if(!toadd.isEmpty()) {
VcsJob* job = add(toadd);
job->exec();
}
}
VcsJob* GitPlugin::remove(const KUrl::List& files)
......
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