From 996300de86178460152fae22bd01ee444881a888 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 16 Dec 2022 09:43:12 -0700 Subject: [PATCH] Update diff-sha.sh --- diff-sha.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff-sha.sh b/diff-sha.sh index 4386939a..eba8d470 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -172,7 +172,7 @@ else else echo "::debug::Common ancestor: $COMMON_ANCESTOR" - DATE=$(git log --date=iso8601 --format=%cd "${COMMON_ANCESTOR}") + DATE=$(git log --max-count=1 --date=iso8601 --format=%cd "${COMMON_ANCESTOR}") if [[ -z "$DATE" ]]; then echo "::error::Unable to locate a date for the common ancestor: $COMMON_ANCESTOR"