Fixed issue with Fossil settings containing spaces

FossilOrigin-Name: bc8becb1aa02ed969a3330a756e6c54ab1a2a67a
This commit is contained in:
Kostas
2015-08-14 09:53:59 +00:00
parent cd8186ec61
commit 0f4ff6d3c9
4 changed files with 17 additions and 10 deletions

View File

@@ -394,7 +394,15 @@ bool Fossil::setFossilSetting(const QString& name, const QString& value, bool gl
if(value.isEmpty())
params << "unset" << name;
else
params << "settings" << name << value;
{
params << "settings" << name;
// Quote when the value contains spaces
if(value.indexOf(' ')!=-1)
params << "\"" + value + "\"";
else
params << value;
}
if(global)
params << "-global";

View File

@@ -60,7 +60,6 @@ public:
return currentWorkspace;
}
const QString &getProjectName() const
{
return projectName;