From 6113e26177c135cada83f399fa9dc637f494c752 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Thu, 17 Feb 2022 02:54:17 -0500 Subject: [PATCH] Updated diff-sha.sh --- diff-sha.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff-sha.sh b/diff-sha.sh index 685a59bf..57f6ff24 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -74,7 +74,7 @@ else if [[ "$INPUT_USE_FORK_POINT" == "true" ]]; then echo "Getting fork point..." git fetch --no-tags -u --progress temp_changed_files "${TARGET_BRANCH}":"${TARGET_BRANCH}" && exit_status=$? || exit_status=$? - PREVIOUS_SHA=$(git merge-base --fork-point "${TARGET_BRANCH}") && exit_status=$? || exit_status=$? + PREVIOUS_SHA=$(git merge-base --fork-point "temp_changed_files/${TARGET_BRANCH}") && exit_status=$? || exit_status=$? else git fetch --no-tags -u --progress --depth=1 temp_changed_files "${TARGET_BRANCH}":"${TARGET_BRANCH}" && exit_status=$? || exit_status=$? PREVIOUS_SHA=$(git rev-list --no-merges -n 1 "${TARGET_BRANCH}" 2>&1) && exit_status=$? || exit_status=$?