mirror of
https://code.forgejo.org/actions/checkout.git
synced 2026-08-27 20:44:58 -04:00
.
This commit is contained in:
parent
35bb830cfd
commit
64fcc0c59a
8 changed files with 3437 additions and 297 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue