fixing cache folder
parent
1c8c5e59b6
commit
0b0cfa3875
|
|
@ -855,11 +855,10 @@ class SetupCloudRunnerRepository {
|
|||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
remote_client_logger_1.RemoteClientLogger.log(`Initializing source repository for cloning with caching of LFS files`);
|
||||
process.chdir(`${path_1.default.join(cloud_runner_state_1.CloudRunnerState.repoPathFull, '..')}`);
|
||||
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)}`);
|
||||
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) {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -40,12 +40,11 @@ export class SetupCloudRunnerRepository {
|
|||
private static async cloneRepoWithoutLFSFiles() {
|
||||
try {
|
||||
RemoteClientLogger.log(`Initializing source repository for cloning with caching of LFS files`);
|
||||
process.chdir(`${path.join(CloudRunnerState.repoPathFull, '..')}`);
|
||||
await CloudRunnerSystem.Run(`git config --global advice.detachedHead false`);
|
||||
RemoteClientLogger.log(`Cloning the repository being built:`);
|
||||
await CloudRunnerSystem.Run(`git lfs install --skip-smudge`);
|
||||
await CloudRunnerSystem.Run(
|
||||
`git clone ${CloudRunnerState.targetBuildRepoUrl} ${path.basename(CloudRunnerState.repoPathFull)}`,
|
||||
`git clone ${CloudRunnerState.targetBuildRepoUrl} ./../${path.basename(CloudRunnerState.repoPathFull)}`,
|
||||
);
|
||||
process.chdir(`${CloudRunnerState.repoPathFull}`);
|
||||
assert(fs.existsSync(`.git`));
|
||||
|
|
|
|||
Loading…
Reference in New Issue