From: Fabian Grünbichler Date: Tue, 20 Jun 2017 07:30:52 +0000 (+0200) Subject: build: use git to get GITVERSION X-Git-Url: https://git.proxmox.com/?p=ceph.git;a=commitdiff_plain;h=f2664c11ecc03e3030a56deb3e4e684bc0c81e53 build: use git to get GITVERSION --- diff --git a/Makefile b/Makefile index 90f3a9f0c..8298ac589 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ SRCDIR=ceph BUILDSRC=${SRCDIR}-${VER} ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) -GITVERSION:=$(shell cat .git/refs/heads/master) +GITVERSION:=$(shell git rev-parse HEAD) DBG_DEBS=ceph-common-dbg_${VER}-${DEBREL}_${ARCH}.deb \ ceph-fuse-dbg_${VER}-${DEBREL}_${ARCH}.deb \