From d3cd1f406f3863db7e9a181f7e7977cb375650af Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 1 Nov 2022 02:21:57 -0600 Subject: [PATCH] Update 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 188ce508..844da6d7 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -50,7 +50,7 @@ if [[ -n "$INPUT_UNTIL" ]]; then fi else if [[ -z $INPUT_SHA ]]; then - CURRENT_SHA=$(git rev-list --no-merges -n 1 HEAD) && exit_status=$? || exit_status=$? + CURRENT_SHA=$(git rev-list --no-merges -n 1 HEAD 2>&1) && exit_status=$? || exit_status=$? else CURRENT_SHA=$INPUT_SHA; exit_status=$? fi