diff --git a/diff-sha.sh b/diff-sha.sh index 9c2be568..68af10bf 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -225,7 +225,7 @@ else depth=$INPUT_FETCH_DEPTH max_depth=$INPUT_MAX_FETCH_DEPTH - while ! git merge-base $MERGE_BASE_EXRTRA_ARGS "$PREVIOUS_SHA" "$CURRENT_SHA" 1>/dev/null; do + while ! git diff --name-only --ignore-submodules=all "$PREVIOUS_SHA"..."$CURRENT_SHA"; do echo "Fetching $depth commits..." # shellcheck disable=SC2086