forked from qt-creator/qt-creator
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:
committed by
Tobias Hunger
parent
45b4ff4e74
commit
4c5376dc99
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user