From d0d71572efc76f259823e6c01e7761cbaa8b5f04 Mon Sep 17 00:00:00 2001 From: talva-tr <82046981+talva-tr@users.noreply.github.com> Date: Tue, 12 Oct 2021 14:56:12 +0300 Subject: [PATCH] Update entrypoint.sh (#204) update.sh: fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository error fix Co-authored-by: Tonye Jack --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 4b2ce1c2..4ec5ea3f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -49,7 +49,7 @@ if [[ -z $GITHUB_BASE_REF ]]; then else TARGET_BRANCH=$GITHUB_BASE_REF CURRENT_BRANCH=$GITHUB_HEAD_REF - git fetch temp_changed_files "${TARGET_BRANCH}":"${TARGET_BRANCH}" + git fetch temp_changed_files -u "${TARGET_BRANCH}":"${TARGET_BRANCH}" if [[ -z $INPUT_BASE_SHA ]]; then PREVIOUS_SHA=$(git rev-parse "${TARGET_BRANCH}" 2>&1) && exit_status=$? || exit_status=$? else