From 4a105ae54b2da526261984b63cdf1e8201c23c26 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Tue, 10 Dec 2019 01:32:25 -0500 Subject: . --- src/ref-helper.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/ref-helper.ts') 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, -- cgit v1.2.3