mirror of
https://github.com/actions/checkout.git
synced 2025-11-01 22:38:08 +08:00
Add objectFormat setting to allow init()ing a repo with sha256
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user