From: Gordon Hecker Date: Wed, 27 May 2009 11:44:48 +0000 (+0200) Subject: find .git in TOPLEVEL when calling git describe X-Git-Tag: e2factory-2.3.1pre1~12 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=b9794e62cb9fb5c5b3136e4b0da3cccbfa47fe05;p=e2factory.git find .git in TOPLEVEL when calling git describe Signed-off-by: Gordon Hecker --- diff --git a/make.vars b/make.vars index c648b93..6923aad 100644 --- 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