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
diff options
context:
space:
mode:
Diffstat (limited to 'dist')
-rw-r--r--dist/index.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/dist/index.js b/dist/index.js
index e128adf..9d959a9 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -2000,9 +2000,13 @@ function getCheckoutInfo(git, ref, commit) {
result.ref = `refs/remotes/pull/${branch}`;
}
// refs/tags/
- else if (upperRef.startsWith('REFS/')) {
+ else if (upperRef.startsWith('REFS/TAGS/')) {
result.ref = ref;
}
+ // refs/
+ else if (upperRef.startsWith('REFS/') && commit) {
+ result.ref = commit;
+ }
// Unqualified ref, check for a matching branch or tag
else {
if (yield git.branchExists(true, `origin/${ref}`)) {