]> git.proxmox.com Git - pve-access-control.git/blobdiff - Makefile
buildsys: fix getting the build commit
[pve-access-control.git] / Makefile
index 3ec8890a47ee84660618a132d6536c668705f6fe..c9e3c1755eb922377e1675774755b616b0b98111 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ ZSHCOMPLDIR=${PREFIX}/share/zsh/vendor-completions/
 
 export PERLDIR=${PREFIX}/share/perl5
 
-GITVERSION:=$(shell cat .git/refs/heads/master)
+GITVERSION:=$(shell git rev-parse HEAD)
 
 DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
 DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc