From 0bd055484c994e774f464ab246385ade83f7f553 Mon Sep 17 00:00:00 2001 From: Orhan Toy Date: Wed, 2 Oct 2024 02:24:28 +0200 Subject: Check out other refs/* by commit if provided, fall back to ref (#1924) --- dist/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dist') diff --git a/dist/index.js b/dist/index.js index 2b7dd09..d86415e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2005,8 +2005,8 @@ function getCheckoutInfo(git, ref, commit) { result.ref = ref; } // refs/ - else if (upperRef.startsWith('REFS/') && commit) { - result.ref = commit; + else if (upperRef.startsWith('REFS/')) { + result.ref = commit ? commit : ref; } // Unqualified ref, check for a matching branch or tag else { -- cgit v1.2.3