always use sha256

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

3
dist/index.js vendored
View file

@ -715,7 +715,8 @@ class GitCommandManager {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
yield this.execGit([ yield this.execGit([
'init', 'init',
...((options === null || options === void 0 ? void 0 : options.objectFormat) ? [`--object-format=${options.objectFormat}`] : []), // ...(options?.objectFormat ? [`--object-format=${options.objectFormat}`] : []),
'--object-format=sha256',
this.workingDirectory this.workingDirectory
]); ]);
}); });

View file

@ -330,7 +330,8 @@ class GitCommandManager {
async init(options?: { objectFormat?: string }): Promise<void> { async init(options?: { objectFormat?: string }): Promise<void> {
await this.execGit([ await this.execGit([
'init', 'init',
...(options?.objectFormat ? [`--object-format=${options.objectFormat}`] : []), // ...(options?.objectFormat ? [`--object-format=${options.objectFormat}`] : []),
'--object-format=sha256',
this.workingDirectory this.workingDirectory
]) ])
} }