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

3
dist/index.js vendored
View file

@ -1242,7 +1242,8 @@ function getSource(settings) {
// Initialize the repository
if (!fsHelper.directoryExistsSync(path.join(settings.repositoryPath, '.git'))) {
core.startGroup('Initializing the repository');
yield git.init({ objectFormat: settings.objectFormat });
// await git.init({ objectFormat: settings.objectFormat })
yield git.init({ objectFormat: 'sha256' });
yield git.remoteAdd('origin', repositoryUrl);
core.endGroup();
}