diff options
| author | Orhan Toy <orhantoy@github.com> | 2024-10-02 02:24:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-01 20:24:28 -0400 |
| commit | 0bd055484c994e774f464ab246385ade83f7f553 (patch) | |
| tree | 618c5b7cd871818823f0867c251f062575659f73 /dist/index.js | |
| parent | 9e9be721c812de2127a8080b70e59b191b52ad01 (diff) | |
Check out other refs/* by commit if provided, fall back to ref (#1924)
Diffstat (limited to 'dist/index.js')
| -rw-r--r-- | dist/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |
