From 252a35e796a19f955902c1bae82aecb0fc28df9a Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sun, 30 Oct 2022 10:20:35 -0600 Subject: [PATCH] Create 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 3c4af86a..ee8ca329 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 ! git merge-base "$target_branch" "$current_branch" &>/dev/null; do + while [ -z $(git merge-base "$target_branch" "$current_branch") ]; do echo "::debug::Unable to find merge-base in shallow clone. Increasing depth to $((depth * 2))..." depth=$((depth * 2))