mirror of
https://github.com/actions/checkout.git
synced 2025-08-29 15:12:23 +08:00
.
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user