forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user