From 07dc3ab49239c46fb04f8e663528efd5f023f05e Mon Sep 17 00:00:00 2001 From: Yang Zhao Date: Fri, 23 Aug 2024 01:08:57 -0700 Subject: [PATCH] always use sha256 --- dist/index.js | 3 ++- src/git-command-manager.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index f083cf4..7bb2364 100644 --- a/dist/index.js +++ b/dist/index.js @@ -715,7 +715,8 @@ class GitCommandManager { return __awaiter(this, void 0, void 0, function* () { yield this.execGit([ '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 ]); }); diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts index f19952e..6d57cef 100644 --- a/src/git-command-manager.ts +++ b/src/git-command-manager.ts @@ -330,7 +330,8 @@ class GitCommandManager { async init(options?: { objectFormat?: string }): Promise { await this.execGit([ 'init', - ...(options?.objectFormat ? [`--object-format=${options.objectFormat}`] : []), + // ...(options?.objectFormat ? [`--object-format=${options.objectFormat}`] : []), + '--object-format=sha256', this.workingDirectory ]) }