mirror of https://github.com/actions/checkout
Compare commits
4 Commits
48c48811c5
...
3629f2766f
| Author | SHA1 | Date |
|---|---|---|
|
|
3629f2766f | |
|
|
4e91896422 | |
|
|
6a27b96959 | |
|
|
38cc68387c |
|
|
@ -35816,9 +35816,6 @@ class GitCommandManager {
|
||||||
const output = await this.execGit(['rev-parse', '--symbolic-full-name', '--verify', '--quiet', 'HEAD'], true);
|
const output = await this.execGit(['rev-parse', '--symbolic-full-name', '--verify', '--quiet', 'HEAD'], true);
|
||||||
return !output.stdout.trim().startsWith('refs/heads/');
|
return !output.stdout.trim().startsWith('refs/heads/');
|
||||||
}
|
}
|
||||||
async lfsCheckout() {
|
|
||||||
await this.execGit(['lfs', 'checkout']);
|
|
||||||
}
|
|
||||||
async lfsFetch(ref) {
|
async lfsFetch(ref) {
|
||||||
const args = ['lfs', 'fetch', 'origin', ref];
|
const args = ['lfs', 'fetch', 'origin', ref];
|
||||||
const that = this;
|
const that = this;
|
||||||
|
|
@ -41882,12 +41879,6 @@ async function getSource(settings) {
|
||||||
startGroup('Checking out the ref');
|
startGroup('Checking out the ref');
|
||||||
await git.checkout(checkoutInfo.ref, checkoutInfo.startPoint);
|
await git.checkout(checkoutInfo.ref, checkoutInfo.startPoint);
|
||||||
endGroup();
|
endGroup();
|
||||||
// LFS checkout
|
|
||||||
if (settings.lfs && !settings.sparseCheckout) {
|
|
||||||
startGroup('Checking out LFS objects');
|
|
||||||
await git.lfsCheckout();
|
|
||||||
endGroup();
|
|
||||||
}
|
|
||||||
// Submodules
|
// Submodules
|
||||||
if (settings.submodules) {
|
if (settings.submodules) {
|
||||||
// Temporarily override global config
|
// Temporarily override global config
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue