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/dist/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/index.js')
-rw-r--r--dist/index.js4
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 {