aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml.pro
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2018-07-02 13:32:44 +0300
committerSimon Hausmann <simon.hausmann@qt.io>2018-07-02 13:38:59 +0000
commit260e165993fe15a1668cfd36caee18a95b2d2f59 (patch)
tree66a9d9360dd4046eb1f2eb5885b606736775364f /src/qml/qml.pro
parent5bb7daaf19f312636b4f5cd5b14b26d84b66f45a (diff)
Always use commit sha1 for QML_COMPILE_HASH
git describe can produce different strings for the same sha1, depending on the version of git (length of short hash) and whether release tag was in place when build was done (v5.11.1-0- vs. v5.11.0-66-). Instead use rev-parse to get the unambiguous commit sha1 which is also what is used from the .tag file. Change-Id: If378f03eb764e2d858bda5b662106aa4402d6559 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/qml.pro')
-rw-r--r--src/qml/qml.pro2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml.pro b/src/qml/qml.pro
index 940ebb3257..a76a87b153 100644
--- a/src/qml/qml.pro
+++ b/src/qml/qml.pro
@@ -31,7 +31,7 @@ DEFINES += QT_NO_FOREACH
!equals(tag, "$${LITERAL_DOLLAR}Format:%H$${LITERAL_DOLLAR}") {
QML_COMPILE_HASH = $$tag
} else:exists($$PWD/../../.git) {
- commit = $$system(git describe --tags --always --long --dirty)
+ commit = $$system(git rev-parse HEAD)
QML_COMPILE_HASH = $$commit
}
compile_hash_contents = \