From b33b2a98aca87f1bdd53e4cf703c1f9ae533ea02 Mon Sep 17 00:00:00 2001 From: "Lance R. Vick" Date: Tue, 10 Oct 2023 15:18:24 -0700 Subject: [PATCH] git mtime updates skip non-existant paths --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0280254..fc0aea0 100644 --- a/Makefile +++ b/Makefile @@ -151,7 +151,8 @@ toolchain-restore-mtime: mkdir -p "$$d"; \ done; \ for f in $$(git ls-tree -r -t --full-name --name-only "HEAD"); do \ - touch -t \ + ( test -f "$$f" || test -d "$$f" ) \ + && touch -t \ $$(git log \ --pretty=format:%cd \ --date=format:%Y%m%d%H%M.%S \