From 97e67238eae0caff43977a1e616f2dc83c476015 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 4 Nov 2022 14:22:55 -0600 Subject: [PATCH] Update diff-sha.sh Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- diff-sha.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff-sha.sh b/diff-sha.sh index df0070f9..0ba52db7 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -176,7 +176,7 @@ else depth=$INPUT_FETCH_DEPTH - 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)) git fetch -q --deepen=$depth origin "$CURRENT_BRANCH":"$CURRENT_BRANCH"