mirror of
https://github.com/tj-actions/changed-files
synced 2025-02-06 19:41:20 +00:00
Create diff-sha.sh
This commit is contained in:
parent
7f68648067
commit
252a35e796
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 ! 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))
|
||||||
|
|
Loading…
Add table
Reference in a new issue