diff --git a/diff-sha.sh b/diff-sha.sh index eba8d470..dfc3279d 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -172,7 +172,7 @@ else else echo "::debug::Common ancestor: $COMMON_ANCESTOR" - DATE=$(git log --max-count=1 --date=iso8601 --format=%cd "${COMMON_ANCESTOR}") + DATE=$(git show --date=iso8601 --format=%cd "$COMMON_ANCESTOR") if [[ -z "$DATE" ]]; then echo "::error::Unable to locate a date for the common ancestor: $COMMON_ANCESTOR"