]> git.proxmox.com Git - ceph.git/commitdiff
build: use git to get GITVERSION
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 20 Jun 2017 07:30:52 +0000 (09:30 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 20 Jun 2017 07:31:18 +0000 (09:31 +0200)
Makefile

index 90f3a9f0c8248c7edc630c5715b61da1035f0ebd..8298ac5895af4e6697f2cb31cf92035c088caabc 100644 (file)
--- 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 \