From 09d80f67354c9d992e84f7a564b4b1874eeb82fd Mon Sep 17 00:00:00 2001 From: Philip Whineray Date: Wed, 6 Apr 2016 23:36:44 +0100 Subject: [PATCH] Fix location of git dir relative to build source Should resolve issue with out-of-tree builds using git repo --- web/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/Makefile.am b/web/Makefile.am index f0e5bd9c..38711959 100644 --- a/web/Makefile.am +++ b/web/Makefile.am @@ -91,9 +91,9 @@ dist_webimages_DATA = \ $(NULL) version.txt: - if test -d ../.git; then \ - if git log -n 1 > v.tmp; then \ - grep ^commit\ v.tmp | cut -d " " -f2 > version.txt; \ + if test -d "$(top_srcdir)/.git"; then \ + if git --git-dir="$(top_srcdir)/.git" log -n 1 > v.tmp; then \ + grep ^commit\ v.tmp | cut -d" " -f2 > version.txt; \ rm -f v.tmp; \ else \ rm -f v.tmp; \ -- 2.39.2