mirror of
https://github.com/yangskyboxlabs/action-checkout.git
synced 2025-12-13 21:18:25 +01:00
always use sha256
This commit is contained in:
parent
0d5991caee
commit
07dc3ab492
2 changed files with 4 additions and 2 deletions
3
dist/index.js
vendored
3
dist/index.js
vendored
|
|
@ -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
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue