Update diff-sha.sh

This commit is contained in:
Tonye Jack 2022-11-04 16:40:47 -06:00 committed by GitHub
parent 5b43f91839
commit ac593b977e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,7 +142,7 @@ else
while [ -z "$( git merge-base "$TARGET_BRANCH" HEAD )" ]; do
git fetch --deepen="$depth" origin "$TARGET_BRANCH" HEAD;
depth=$((depth * 10))
max_depth=3000
max_depth=5000
if [[ $depth -gt $max_depth ]]; then
echo "::error::Unable to find merge-base of $TARGET_BRANCH and HEAD."