mirror of
https://github.com/tj-actions/changed-files
synced 2025-02-06 09:41:22 +00:00
Update diff-sha.sh
This commit is contained in:
parent
133f857c90
commit
ac72938f3a
1 changed files with 3 additions and 3 deletions
|
@ -179,13 +179,13 @@ else
|
||||||
while ! git merge-base $TARGET_BRANCH $CURRENT_BRANCH > /dev/null; do
|
while ! git merge-base $TARGET_BRANCH $CURRENT_BRANCH > /dev/null; do
|
||||||
depth=$((depth+1024))
|
depth=$((depth+1024))
|
||||||
|
|
||||||
git fetch -q --deepen=$depth origin "$TARGET_BRANCH" "$CURRENT_BRANCH"
|
git fetch -q --deepen=$depth origin "$CURRENT_BRANCH":"$CURRENT_BRANCH"
|
||||||
|
|
||||||
if [[ $depth -gt 5000 ]];
|
if [[ $depth -gt 5000 ]]; then
|
||||||
echo "::error::Unable to locate the merge-base for: $TARGET_BRANCH $CURRENT_BRANCH"
|
echo "::error::Unable to locate the merge-base for: $TARGET_BRANCH $CURRENT_BRANCH"
|
||||||
echo "::error::Please verify that both commits are valid, and increase the fetch_depth to a number higher than $INPUT_FETCH_DEPTH."
|
echo "::error::Please verify that both commits are valid, and increase the fetch_depth to a number higher than $INPUT_FETCH_DEPTH."
|
||||||
exit 1
|
exit 1
|
||||||
then
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "::debug::Target branch: $TARGET_BRANCH"
|
echo "::debug::Target branch: $TARGET_BRANCH"
|
||||||
|
|
Loading…
Add table
Reference in a new issue