Skip to content

Commit

Permalink
Create diff-sha.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Oct 30, 2022
1 parent 7f68648 commit 252a35e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diff-sha.sh
Expand Up @@ -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))
Expand Down

0 comments on commit 252a35e

Please sign in to comment.