]> git.e2factory.org Git - e2factory.git/commitdiff
find .git in TOPLEVEL when calling git describe
authorGordon Hecker <gh@emlix.com>
Wed, 27 May 2009 11:44:48 +0000 (13:44 +0200)
committerGordon Hecker <gh@emlix.com>
Wed, 27 May 2009 11:44:48 +0000 (13:44 +0200)
Signed-off-by: Gordon Hecker <gh@emlix.com>
make.vars

index c648b93b3685baceffc602b8e1563bc6f29cb854..6923aad941a964f28738d6ea4e82f355ffff6036 100644 (file)
--- a/make.vars
+++ b/make.vars
@@ -13,7 +13,7 @@ else
 endif
 TAG = $(NAME)-$(VERSION)
 
-COMMIT = $(shell git describe --tags 2>/dev/null)
+COMMIT = $(shell GIT_DIR=$(TOPLEVEL)/.git git describe --tags 2>/dev/null)
 ifeq ($(COMMIT),)
   VERSIONSTRING = $(TAG)
 else