Force sha256 object format

This commit is contained in:
Yang Zhao 2024-08-23 01:06:43 -07:00
parent 85f76c73cb
commit 0d5991caee
2 changed files with 4 additions and 2 deletions

View file

@ -110,7 +110,8 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
!fsHelper.directoryExistsSync(path.join(settings.repositoryPath, '.git'))
) {
core.startGroup('Initializing the repository')
await git.init({ objectFormat: settings.objectFormat })
// await git.init({ objectFormat: settings.objectFormat })
await git.init({ objectFormat: 'sha256' })
await git.remoteAdd('origin', repositoryUrl)
core.endGroup()
}