diff options
| author | eric sciple <ericsciple@users.noreply.github.com> | 2019-12-10 01:32:25 -0500 |
|---|---|---|
| committer | eric sciple <ericsciple@users.noreply.github.com> | 2019-12-10 01:32:25 -0500 |
| commit | 4a105ae54b2da526261984b63cdf1e8201c23c26 (patch) | |
| tree | bfba89169b49443907e27bf60ea1fe0dd15cd9e2 /src/ref-helper.ts | |
| parent | 25200ab0645b98efa3c63720f8acac662337877c (diff) | |
.
Diffstat (limited to 'src/ref-helper.ts')
| -rw-r--r-- | src/ref-helper.ts | 9 |
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, |
