Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ref-helper.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ref-helper.ts b/src/ref-helper.ts
index 00a1d27..58f9290 100644
--- a/src/ref-helper.ts
+++ b/src/ref-helper.ts
@@ -46,8 +46,8 @@ export async function getCheckoutInfo(
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 {