Fix detecting git repository (fixes #2173, thx ncopa)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2722 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
Stefan Bühler 2010-04-28 13:12:36 +00:00
parent a0b5391e77
commit f6b3c15024
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -8,6 +8,7 @@ NEWS
* Fix mod_proxy HUP handling (send final chunk, fix usage counter)
* mod_proxy: close connection on write error (fixes #2114)
* Check uri instead of physical path for directory redirect
* Fix detecting git repository (fixes #2173, thx ncopa)
- 1.4.26 - 2010-02-07
* Fix request parser to handle packets with splitted \r\n\r\n (fixes #2105)

View File

@ -19,7 +19,7 @@ versionstamp:
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 \