Update diff-sha.sh
This commit is contained in:
parent
133f857c90
commit
ac72938f3a
@ -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…
x
Reference in New Issue
Block a user