diff --git a/pkg/package.mk b/pkg/package.mk index e169a1353..6f32c4eb1 100644 --- a/pkg/package.mk +++ b/pkg/package.mk @@ -2,10 +2,10 @@ default: push ORG?=linuxkit -HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}') +HASH?=$(shell git ls-tree --full-tree HEAD -- $(CURDIR) | awk '{print $$3}') BASE_DEPS=Dockerfile Makefile -DIRTY=$(shell git diff-index --quiet HEAD -- ../$(notdir $(CURDIR)) || echo "-dirty") +DIRTY=$(shell git diff-index --quiet HEAD -- $(CURDIR) || echo "-dirty") TAG=$(ORG)/$(IMAGE):$(HASH)$(DIRTY) # Get a release tag, if present