pkg: Only consider the package directory itself for dirty tracking.

Since this is what is used in the hash.

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
This commit is contained in:
Ian Campbell 2017-06-28 12:02:11 +01:00
parent b6728a85e9
commit 4a3d5acb88

View File

@ -5,7 +5,7 @@ ORG?=linuxkit
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
BASE_DEPS=Dockerfile Makefile
DIRTY=$(shell git diff-index --quiet HEAD -- ) || echo "-dirty")
DIRTY=$(shell git diff-index --quiet HEAD -- ../$(notdir $(CURDIR)) || echo "-dirty")
TAG=$(HASH)$(DIRTY)
# Get a release tag, if present