forked from qt-creator/qt-creator
Git: Do not append formatting when log failed
Happens for 00000000 for example Change-Id: I1ab3157dd87744a4b16284d91dd26f42898965e9 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
e73025d0ab
commit
bd7499b896
@@ -1076,11 +1076,13 @@ QString GitClient::synchronousShortDescription(const QString &workingDirectory,
|
||||
// Short SHA 1, author, subject
|
||||
QString output = synchronousShortDescription(workingDirectory, revision,
|
||||
QLatin1String(defaultShortLogFormatC));
|
||||
if (output.length() > maxShortLogLength) {
|
||||
output.truncate(maxShortLogLength);
|
||||
output.append(QLatin1String("..."));
|
||||
if (output != revision) {
|
||||
if (output.length() > maxShortLogLength) {
|
||||
output.truncate(maxShortLogLength);
|
||||
output.append(QLatin1String("..."));
|
||||
}
|
||||
output.append(QLatin1String("\")"));
|
||||
}
|
||||
output.append(QLatin1String("\")"));
|
||||
return output;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user