fixing cache folder

pull/310/head
Frostebite 2022-01-06 23:49:04 +00:00
parent 0b0cfa3875
commit ca2b0a6ce0
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -854,12 +854,12 @@ class SetupCloudRunnerRepository {
static cloneRepoWithoutLFSFiles() {
return __awaiter(this, void 0, void 0, function* () {
try {
process.chdir(`${cloud_runner_state_1.CloudRunnerState.repoPathFull}`);
remote_client_logger_1.RemoteClientLogger.log(`Initializing source repository for cloning with caching of LFS files`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`git config --global advice.detachedHead false`);
remote_client_logger_1.RemoteClientLogger.log(`Cloning the repository being built:`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`git lfs install --skip-smudge`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`git clone ${cloud_runner_state_1.CloudRunnerState.targetBuildRepoUrl} ./../${path_1.default.basename(cloud_runner_state_1.CloudRunnerState.repoPathFull)}`);
process.chdir(`${cloud_runner_state_1.CloudRunnerState.repoPathFull}`);
console_1.assert(fs_1.default.existsSync(`.git`));
if (__1.Input.cloudRunnerTests) {
yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls -lh`);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -39,6 +39,7 @@ export class SetupCloudRunnerRepository {
private static async cloneRepoWithoutLFSFiles() {
try {
process.chdir(`${CloudRunnerState.repoPathFull}`);
RemoteClientLogger.log(`Initializing source repository for cloning with caching of LFS files`);
await CloudRunnerSystem.Run(`git config --global advice.detachedHead false`);
RemoteClientLogger.log(`Cloning the repository being built:`);
@ -46,7 +47,6 @@ export class SetupCloudRunnerRepository {
await CloudRunnerSystem.Run(
`git clone ${CloudRunnerState.targetBuildRepoUrl} ./../${path.basename(CloudRunnerState.repoPathFull)}`,
);
process.chdir(`${CloudRunnerState.repoPathFull}`);
assert(fs.existsSync(`.git`));
if (Input.cloudRunnerTests) {
await CloudRunnerSystem.Run(`ls -lh`);