aboutsummaryrefslogtreecommitdiff
path: root/build-dpdk-deb.yaml
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2016-08-18 11:15:14 +0200
committerAnders Roxell <anders.roxell@linaro.org>2016-08-18 11:20:30 +0200
commit858102ee3f1001d867a53fa6631f4ba4c473df16 (patch)
tree718c0d449aec76c1dff642ab3b9926a662b10e2e /build-dpdk-deb.yaml
parent3c38b35956fc01f8c0048194c4a865b496615293 (diff)
build-dpdk-deb: add --long to git describe
To always get the git describe format like this: tag-<num commits from tag>-<sha> Change-Id: Ib8ba0082bf6c54b99f23997c42f3e81633109980 Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Diffstat (limited to 'build-dpdk-deb.yaml')
-rw-r--r--build-dpdk-deb.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/build-dpdk-deb.yaml b/build-dpdk-deb.yaml
index 75a02b47a0..53276d6b84 100644
--- a/build-dpdk-deb.yaml
+++ b/build-dpdk-deb.yaml
@@ -53,8 +53,8 @@
git checkout v16.07
- base_version=$(git describe --match='v*' | sed -e 's/^v//' | cut -d'-' -f1)
- nb_commit=$(git describe --match='v*' | sed -e 's/^v//' | cut -d'-' -f2)
+ base_version=$(git describe --long --match='v*' | sed -e 's/^v//' | cut -d'-' -f1)
+ nb_commit=$(git describe --long --match='v*' | sed -e 's/^v//' | cut -d'-' -f2)
scm_commit=$(git log -n1 --pretty=format:%h)
# For snapshot version
# pkg_version=${base_version}+git${nb_commit}+${scm_commit}