summaryrefslogtreecommitdiff
path: root/gyp/version.gypi
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-12-08 16:47:24 +0100
committerKonstantin Käfer <mail@kkaefer.com>2014-12-08 16:47:24 +0100
commit0a84deef91c88e382091f0d428bc1192afbe0adc (patch)
tree7fe28d3dcebaed904910c72b273c2bdeef312e30 /gyp/version.gypi
parente11c073e518139ca1729ea1e4a76c215b9abca53 (diff)
downloadqtlocation-mapboxgl-0a84deef91c88e382091f0d428bc1192afbe0adc.tar.gz
make sure it also works when there are no git tags
Diffstat (limited to 'gyp/version.gypi')
-rw-r--r--gyp/version.gypi2
1 files changed, 1 insertions, 1 deletions
diff --git a/gyp/version.gypi b/gyp/version.gypi
index 2670c190c0..73b2f668db 100644
--- a/gyp/version.gypi
+++ b/gyp/version.gypi
@@ -14,7 +14,7 @@
'<(SHARED_INTERMEDIATE_DIR)/include/mbgl/util/version.hpp',
'<(SHARED_INTERMEDIATE_DIR)/src/mbgl/util/mbgl_version.cpp',
],
- 'action': ['<@(python)', 'scripts/build-version.py', '<(SHARED_INTERMEDIATE_DIR)', '<!@(git describe --tags --abbrev=0)', '<!@(git rev-parse --short HEAD)'],
+ 'action': ['<@(python)', 'scripts/build-version.py', '<(SHARED_INTERMEDIATE_DIR)', '<!@(git describe --tags --always --abbrev=8)', '<!@(git rev-parse --short=8 HEAD)'],
}
],
'direct_dependent_settings': {