Commit c9f0bf78 authored by Evgeniy Ivanov's avatar Evgeniy Ivanov
Browse files

Fixed extra quoting of commit-messages in the DVCS log

parent 725f75d2
......@@ -117,8 +117,8 @@ DVCSjob* GitExecutor::add(const QString& repository, const KUrl::List &files)
//TODO: git doesn't like empty messages, but "KDevelop didn't provide any message, it may be a bug" looks ugly...
//If no files specified then commit already added files
DVCSjob* GitExecutor::commit(const QString& repository,
const QString &message, /*= "KDevelop didn't provide any message, it may be a bug"*/
const KUrl::List &args /*= QStringList("")*/)
const QString &message, /*= "KDevelop didn't provide any message, it may be a bug"*/
const KUrl::List &args /*= QStringList("")*/)
{
DVCSjob* job = new DVCSjob(vcsplugin);
if (prepareJob(job, repository) ) {
......@@ -127,7 +127,8 @@ DVCSjob* GitExecutor::commit(const QString& repository,
/* foreach(KUrl arg, args)
*job<<KUrl::relativeUrl(repository + QDir::separator(), arg);*/
*job << "-m";
*job << KShell::quoteArg( message );
//Note: the message is quoted somewhere else, so if we quote here then we have quotes in the commit log
*job << message;
return job;
}
if (job) delete job;
......
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