Add objectFormat setting to allow init()ing a repo with sha256

This commit is contained in:
Yang Zhao
2024-08-23 00:23:06 -07:00
parent eef61447b9
commit 68a03db899
8 changed files with 120 additions and 39 deletions

View File

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