Create diff-sha.sh

This commit is contained in:
Tonye Jack 2022-10-30 10:20:35 -06:00 committed by GitHub
parent 7f68648067
commit 252a35e796
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ function deepenShallowCloneToFindCommitPullRequest() {
local depth=20 local depth=20
local max_depth=$INPUT_MAX_FETCH_DEPTH 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))..." echo "::debug::Unable to find merge-base in shallow clone. Increasing depth to $((depth * 2))..."
depth=$((depth * 2)) depth=$((depth * 2))