@cryptotaxi247 / netdata-1 / commits / 09d80f673

Fix location of git dir relative to build source

Should resolve issue with out-of-tree builds using git repo

Philip Whineray committed Apr 6, 2016 at 23:36 UTC 09d80f67354c9d992e84f7a564b4b1874eeb82fd
1 file changed +3 -3
web/Makefile.am
+3 -3
@@ -91,9 +91,9 @@ dist_webimages_DATA = \
91 $(NULL)
92
93 version.txt:
94 - if test -d ../.git; then \
95 - if git log -n 1 > v.tmp; then \
96 - grep ^commit\ v.tmp | cut -d " " -f2 > version.txt; \
94 + if test -d "$(top_srcdir)/.git"; then \
95 + if git --git-dir="$(top_srcdir)/.git" log -n 1 > v.tmp; then \
96 + grep ^commit\ v.tmp | cut -d" " -f2 > version.txt; \
97 rm -f v.tmp; \
98 else \
99 rm -f v.tmp; \