diff --git a/Makefile b/Makefile index 26b8941969..812003c6c6 100644 --- a/Makefile +++ b/Makefile @@ -84,7 +84,7 @@ build: bundles docker build -t "$(DOCKER_IMAGE)" . docs-build: - ( git remote | grep -v upstream ) || git diff --name-status upstream/release..upstream/docs docs/ > docs/changed-files + git fetch https://github.com/docker/docker.git docs && git diff --name-status FETCH_HEAD...HEAD -- docs > docs/changed-files cp ./VERSION docs/VERSION echo "$(GIT_BRANCH)" > docs/GIT_BRANCH echo "$(AWS_S3_BUCKET)" > docs/AWS_S3_BUCKET