From 941c21b6815ee8eeb3153d6459954ce3ed3df256 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 25 Oct 2022 14:57:58 -0600 Subject: [PATCH] Simplify code --- diff-sha.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff-sha.sh b/diff-sha.sh index f743b5f6195..4a1ef443285 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -73,7 +73,7 @@ function deepenShallowCloneToFindCommit() { local depth=20 local max_depth=$INPUT_MAX_FETCH_DEPTH - while ! git rev-parse --quiet --verify "$ref^{commit}" 1>/dev/null 2>&1; do # !0 = true = not found + while ! git rev-parse --quiet --verify "$ref^{commit}" &>/dev/null; do # !0 = true = not found echo "::debug::Unable to find commit '$ref' in shallow clone. Increasing depth to $((depth * 2))..." depth=$((depth * 2))