From 79704e5d8fc0b49fc207ff817d5191caae593d05 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sun, 30 Oct 2022 10:34:50 -0600 Subject: [PATCH] Update diff-sha.sh --- diff-sha.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff-sha.sh b/diff-sha.sh index 0660f86d76e..2f1ff268b9b 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -93,7 +93,7 @@ function deepenShallowCloneToFindCommitPullRequest() { local depth=20 local max_depth=$INPUT_MAX_FETCH_DEPTH - while [ -z "$(git merge-base "$target_branch" "$current_branch")" ]; do + while ! git diff "$target_branch"..."$current_branch"; do echo "::debug::Unable to find merge-base in shallow clone. Increasing depth to $((depth * 2))..." depth=$((depth * 2))