Update diff-sha.sh
This commit is contained in:
parent
8c727bef3c
commit
40f3d5695f
@ -252,6 +252,14 @@ else
|
|||||||
|
|
||||||
echo "Fetching $i commits..."
|
echo "Fetching $i commits..."
|
||||||
|
|
||||||
|
if [[ -z "$INPUT_BASE_SHA" ]]; then
|
||||||
|
NEW_PREVIOUS_SHA=$(git merge-base --fork-point "$TARGET_BRANCH" "$CURRENT_SHA")
|
||||||
|
|
||||||
|
if [[ -n $NEW_PREVIOUS_SHA ]]; then
|
||||||
|
PREVIOUS_SHA=$NEW_PREVIOUS_SHA
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
git fetch $EXTRA_ARGS -u --progress --deepen="$i" origin $TARGET_BRANCH $CURRENT_SHA 1>/dev/null 2>&1
|
git fetch $EXTRA_ARGS -u --progress --deepen="$i" origin $TARGET_BRANCH $CURRENT_SHA 1>/dev/null 2>&1
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user