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/ref-helper.ts
diff options
context:
space:
mode:
authoreric sciple <ericsciple@users.noreply.github.com>2019-12-10 01:32:25 -0500
committereric sciple <ericsciple@users.noreply.github.com>2019-12-10 01:32:25 -0500
commit4a105ae54b2da526261984b63cdf1e8201c23c26 (patch)
treebfba89169b49443907e27bf60ea1fe0dd15cd9e2 /src/ref-helper.ts
parent25200ab0645b98efa3c63720f8acac662337877c (diff)
.
Diffstat (limited to 'src/ref-helper.ts')
-rw-r--r--src/ref-helper.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ref-helper.ts b/src/ref-helper.ts
index ff256af..c55ed92 100644
--- a/src/ref-helper.ts
+++ b/src/ref-helper.ts
@@ -5,6 +5,15 @@ export interface ICheckoutInfo {
startPoint: string
}
+export function getDownloadRef(ref: string, commit: string): string {
+ if (commit) {
+ return commit
+ }
+
+ // todo fix this to work with refs/pull etc
+ return ref
+}
+
export async function getCheckoutInfo(
git: IGitCommandManager,
ref: string,