mirror of
https://github.com/tj-actions/changed-files
synced 2025-01-29 13:34:51 +00:00
Update diff-sha.sh
This commit is contained in:
parent
c276f6ff7e
commit
79704e5d8f
1 changed files with 1 additions and 1 deletions
|
@ -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 [ -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))..."
|
echo "::debug::Unable to find merge-base in shallow clone. Increasing depth to $((depth * 2))..."
|
||||||
|
|
||||||
depth=$((depth * 2))
|
depth=$((depth * 2))
|
||||||
|
|
Loading…
Reference in a new issue