diff --git a/dist/index.js b/dist/index.js index 9d7cf3f..bf2f140 100644 --- a/dist/index.js +++ b/dist/index.js @@ -25719,6 +25719,11 @@ function getCommitsSinceLatestBeforeGivenDate(dir, date) { // No commits in the target repo - return an empty array, which will result in the first representative commit // being made as the first commit. And then we can iterate as normal (recalling that the target history is // refreshed _from local repo_ - incurring no network charges) from there on. + if (error.output == undefined) { + throw Error(`Unexpected error while building target commit history`, { + cause: error + }); + } const errorOutputAsString = '' + error.output[2]; if (!errorOutputAsString.includes('does not have any commits yet')) { console.log(`Unexpected error: ${errorOutputAsString}`); @@ -25790,7 +25795,13 @@ function createRepresentativeCommit(dir, sourceRepo, sourceCommit) { } catch (e) { console.log(e); + console.log(`DEBUG - e is ${e}`); const error = e; + if (error.output == undefined) { + throw Error(`Unexpected error while creating representative commit`, { + cause: error + }); + } console.log(`DEBUG - error while creating representative commit: ${'' + error.output[2]} ... ${'' + error.output[1]}`); throw e; } diff --git a/node_modules/@vercel/ncc/dist/ncc/cli.js.cache b/node_modules/@vercel/ncc/dist/ncc/cli.js.cache index 50cc3a0..8d26689 100644 Binary files a/node_modules/@vercel/ncc/dist/ncc/cli.js.cache and b/node_modules/@vercel/ncc/dist/ncc/cli.js.cache differ diff --git a/node_modules/@vercel/ncc/dist/ncc/index.js.cache b/node_modules/@vercel/ncc/dist/ncc/index.js.cache index f5eb1f9..71a7f90 100644 Binary files a/node_modules/@vercel/ncc/dist/ncc/index.js.cache and b/node_modules/@vercel/ncc/dist/ncc/index.js.cache differ diff --git a/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache b/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache index 1e6ec6e..a5dba6e 100644 Binary files a/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache and b/node_modules/@vercel/ncc/dist/ncc/loaders/relocate-loader.js.cache differ diff --git a/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache b/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache index b22bac1..0b4b098 100644 Binary files a/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache and b/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js.cache differ diff --git a/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache b/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache index 17527b2..4272069 100644 Binary files a/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache and b/node_modules/@vercel/ncc/dist/ncc/loaders/ts-loader.js.cache differ diff --git a/src/git.ts b/src/git.ts index e977fbe..5dcaeca 100644 --- a/src/git.ts +++ b/src/git.ts @@ -74,6 +74,11 @@ export function getCommitsSinceLatestBeforeGivenDate(dir: string, date: Date): C // No commits in the target repo - return an empty array, which will result in the first representative commit // being made as the first commit. And then we can iterate as normal (recalling that the target history is // refreshed _from local repo_ - incurring no network charges) from there on. + if (error.output == undefined) { + throw Error(`Unexpected error while building target commit history`, { + cause: error + }) + } const errorOutputAsString = '' + error.output[2] if (!errorOutputAsString.includes('does not have any commits yet')) { console.log(`Unexpected error: ${errorOutputAsString}`); @@ -150,7 +155,13 @@ function createRepresentativeCommit(dir: string, sourceRepo: RepoId,sourceCommit }) } catch (e) { console.log(e); + console.log(`DEBUG - e is ${e}`); const error = e as ExecSyncError; + if (error.output == undefined) { + throw Error(`Unexpected error while creating representative commit`, { + cause: error + }) + } console.log(`DEBUG - error while creating representative commit: ${'' + error.output[2]} ... ${'' + error.output[1]}`); throw e; }