aboutsummaryrefslogtreecommitdiffstats
path: root/main/lighttpd/lighttpd-version-from-git.patch
blob: ae6407c49f41202caa9986c8a7d49e388e74460c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: src/Makefile.am
===================================================================
--- src/Makefile.am	(revision 2717)
+++ src/Makefile.am	(working copy)
@@ -19,7 +19,7 @@
 			REVISION=""; \
 		fi; \
 	fi; \
-	if test -z "$$REVISION" -a -x "`which git`"; then \
+	if test -z "$$REVISION" -a -d "$(top_srcdir)/.git" -a -x "`which git`"; then \
 		REVISION="$$(cd "$(top_srcdir)"; LANG= LC_ALL=C git describe --always 2>/dev/null || echo)"; \
 	fi; \
 	if test -n "$$REVISION"; then \