lfs smudge set explicit and undo explicit
							parent
							
								
									e4490cd3ca
								
							
						
					
					
						commit
						99f9a7179b
					
				|  | @ -949,7 +949,9 @@ class SetupCloudRunnerRepository { | ||||||
|                 remote_client_logger_1.RemoteClientLogger.log(`Initializing source repository for cloning with caching of LFS files`); |                 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`); |                 yield cloud_runner_system_1.CloudRunnerSystem.Run(`git config --global advice.detachedHead false`); | ||||||
|                 remote_client_logger_1.RemoteClientLogger.log(`Cloning the repository being built:`); |                 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 config --global filter.lfs.smudge "git-lfs smudge --skip -- %f"`); | ||||||
|  |                 yield cloud_runner_system_1.CloudRunnerSystem.Run(`git config --global filter.lfs.process "git-lfs filter-process --skip"`); | ||||||
|  |                 yield cloud_runner_system_1.CloudRunnerSystem.Run(`git lfs install`); | ||||||
|                 yield cloud_runner_system_1.CloudRunnerSystem.Run(`git clone ${cloud_runner_state_1.CloudRunnerState.targetBuildRepoUrl} ${path_1.default.resolve(`..`, 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.resolve(`..`, path_1.default.basename(cloud_runner_state_1.CloudRunnerState.repoPathFull))}`); | ||||||
|                 console_1.assert(fs_1.default.existsSync(`.git`)); |                 console_1.assert(fs_1.default.existsSync(`.git`)); | ||||||
|                 remote_client_logger_1.RemoteClientLogger.log(`${cloud_runner_state_1.CloudRunnerState.buildParams.branch}`); |                 remote_client_logger_1.RemoteClientLogger.log(`${cloud_runner_state_1.CloudRunnerState.buildParams.branch}`); | ||||||
|  | @ -968,6 +970,8 @@ class SetupCloudRunnerRepository { | ||||||
|                 yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls -lh ${cloud_runner_state_1.CloudRunnerState.lfsDirectoryFull}/..`); |                 yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls -lh ${cloud_runner_state_1.CloudRunnerState.lfsDirectoryFull}/..`); | ||||||
|             } |             } | ||||||
|             process.chdir(cloud_runner_state_1.CloudRunnerState.repoPathFull); |             process.chdir(cloud_runner_state_1.CloudRunnerState.repoPathFull); | ||||||
|  |             yield cloud_runner_system_1.CloudRunnerSystem.Run(`git config --global filter.lfs.smudge "git-lfs smudge -- %f"`); | ||||||
|  |             yield cloud_runner_system_1.CloudRunnerSystem.Run(`git config --global filter.lfs.process "git-lfs filter-process"`); | ||||||
|             yield cloud_runner_system_1.CloudRunnerSystem.Run(`git lfs pull`); |             yield cloud_runner_system_1.CloudRunnerSystem.Run(`git lfs pull`); | ||||||
|             remote_client_logger_1.RemoteClientLogger.log(`pulled latest LFS files`); |             remote_client_logger_1.RemoteClientLogger.log(`pulled latest LFS files`); | ||||||
|             console_1.assert(fs_1.default.existsSync(cloud_runner_state_1.CloudRunnerState.lfsDirectoryFull)); |             console_1.assert(fs_1.default.existsSync(cloud_runner_state_1.CloudRunnerState.lfsDirectoryFull)); | ||||||
|  |  | ||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -45,7 +45,9 @@ export class SetupCloudRunnerRepository { | ||||||
|       RemoteClientLogger.log(`Initializing source repository for cloning with caching of LFS files`); |       RemoteClientLogger.log(`Initializing source repository for cloning with caching of LFS files`); | ||||||
|       await CloudRunnerSystem.Run(`git config --global advice.detachedHead false`); |       await CloudRunnerSystem.Run(`git config --global advice.detachedHead false`); | ||||||
|       RemoteClientLogger.log(`Cloning the repository being built:`); |       RemoteClientLogger.log(`Cloning the repository being built:`); | ||||||
|       await CloudRunnerSystem.Run(`git lfs install --skip-smudge`); |       await CloudRunnerSystem.Run(`git config --global filter.lfs.smudge "git-lfs smudge --skip -- %f"`); | ||||||
|  |       await CloudRunnerSystem.Run(`git config --global filter.lfs.process "git-lfs filter-process --skip"`); | ||||||
|  |       await CloudRunnerSystem.Run(`git lfs install`); | ||||||
|       await CloudRunnerSystem.Run( |       await CloudRunnerSystem.Run( | ||||||
|         `git clone ${CloudRunnerState.targetBuildRepoUrl} ${path.resolve( |         `git clone ${CloudRunnerState.targetBuildRepoUrl} ${path.resolve( | ||||||
|           `..`, |           `..`, | ||||||
|  | @ -67,6 +69,8 @@ export class SetupCloudRunnerRepository { | ||||||
|       await CloudRunnerSystem.Run(`ls -lh ${CloudRunnerState.lfsDirectoryFull}/..`); |       await CloudRunnerSystem.Run(`ls -lh ${CloudRunnerState.lfsDirectoryFull}/..`); | ||||||
|     } |     } | ||||||
|     process.chdir(CloudRunnerState.repoPathFull); |     process.chdir(CloudRunnerState.repoPathFull); | ||||||
|  |     await CloudRunnerSystem.Run(`git config --global filter.lfs.smudge "git-lfs smudge -- %f"`); | ||||||
|  |     await CloudRunnerSystem.Run(`git config --global filter.lfs.process "git-lfs filter-process"`); | ||||||
|     await CloudRunnerSystem.Run(`git lfs pull`); |     await CloudRunnerSystem.Run(`git lfs pull`); | ||||||
|     RemoteClientLogger.log(`pulled latest LFS files`); |     RemoteClientLogger.log(`pulled latest LFS files`); | ||||||
|     assert(fs.existsSync(CloudRunnerState.lfsDirectoryFull)); |     assert(fs.existsSync(CloudRunnerState.lfsDirectoryFull)); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue