Update diff-sha.sh
This commit is contained in:
parent
2e7b724f9a
commit
e8733f64fa
@ -172,7 +172,7 @@ else
|
|||||||
else
|
else
|
||||||
echo "::debug::Common ancestor: $COMMON_ANCESTOR"
|
echo "::debug::Common ancestor: $COMMON_ANCESTOR"
|
||||||
|
|
||||||
DATE=$(git show --date=iso8601 --format=%cd "$COMMON_ANCESTOR")
|
DATE=$(git show --quiet --date=iso8601 --format=%cd "$COMMON_ANCESTOR")
|
||||||
|
|
||||||
if [[ -z "$DATE" ]]; then
|
if [[ -z "$DATE" ]]; then
|
||||||
echo "::error::Unable to locate a date for the common ancestor: $COMMON_ANCESTOR"
|
echo "::error::Unable to locate a date for the common ancestor: $COMMON_ANCESTOR"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user