From a2cab25e9e8fc7261411737549f377679b76883e Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 19 Mar 2018 19:42:20 -0700 Subject: [PATCH] makefile: Properly determine the git commit time when simh is a submodule --- makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/makefile b/makefile index 5b1015d9..d10bcb07 100644 --- a/makefile +++ b/makefile @@ -846,6 +846,7 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) else ifeq (git-submodule,$(if $(shell cd .. ; git rev-parse --git-dir 2>/dev/null),git-submodule)) GIT_COMMIT_ID=$(shell cd .. ; git submodule status | grep "$(notdir $(realpath .))" | awk '{ print $$1 }') + GIT_COMMIT_TIME=$(shell git --git-dir=$(realpath .)/.git log $(GIT_COMMIT_ID) -1 --pretty="%aI") else GIT_COMMIT_ID=undetermined-git-id GIT_COMMIT_TIME=undetermined-commit-time