Commit 4c5376dc authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Tobias Hunger
Browse files

Git: Do not use hash for topic

Use "(detached)" instead

Change-Id: If1d295cb5dcfe2995e13c7b5b02b00bebf0e1b20
Reviewed-by: default avatarTobias Hunger <>
parent 45b4ff4e
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment