From 69b90fbdbe2b02b550daf99a7987222f58291f79 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sun, 4 Dec 2022 23:13:42 -0700 Subject: [PATCH] fix: determining the merge-base with limited history. --- diff-sha.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff-sha.sh b/diff-sha.sh index d0d645ac..863537c0 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -224,7 +224,7 @@ else depth=$INPUT_FETCH_DEPTH max_depth=$INPUT_MAX_FETCH_DEPTH - while ! git diff --name-only --ignore-submodules=all "$PREVIOUS_SHA"..."$CURRENT_SHA" 1>/dev/null; do + while ! git merge-base "$PREVIOUS_SHA" "$CURRENT_SHA" 1>/dev/null; do echo "Fetching $depth commits..." # shellcheck disable=SC2086