Git: Do not use hash for topic

Use "(detached)" instead

Change-Id: If1d295cb5dcfe2995e13c7b5b02b00bebf0e1b20
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2012-12-11 15:19:23 +02:00
committed by Tobias Hunger
parent 45b4ff4e74
commit 4c5376dc99

View File

@@ -1156,8 +1156,8 @@ QString GitClient::synchronousTopic(const QString &workingDirectory)
if (fullySynchronousGit(workingDirectory, arguments, &outputTextData, 0, false))
return data.topic = commandOutputFromLocal8Bit(outputTextData.trimmed());
// No tag, return HEAD hash
return data.topic = synchronousTopRevision(workingDirectory).left(7);
// No tag
return data.topic = tr("(detached)");
}
// Retrieve head revision