Fixes commiting with empty author/email information

Also only filling in the author field works, git does magic then.
Also fix quoting
This commit is contained in:
dt
2009-12-11 13:57:05 +01:00
parent c7850c3f98
commit 839bc1e941
2 changed files with 10 additions and 4 deletions

View File

@@ -61,9 +61,12 @@ void GitSubmitEditorPanelData::clear()
QString GitSubmitEditorPanelData::authorString() const
{
QString rc;
rc += QLatin1Char('"');
rc += author;
rc += QLatin1String("\" <");
if (email.isEmpty())
return rc;
rc += QLatin1String(" <");
rc += email;
rc += QLatin1Char('>');
return rc;