@xcelera/cli 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -9303,24 +9303,21 @@ async function isGitRepository() {
9303
9303
  return simpleGit().checkIsRepo();
9304
9304
  }
9305
9305
  async function getCommit(hash = 'HEAD') {
9306
- // format: %H: commit hash, %s: subject, %an: author name, %ae: author email, %ai: author date
9306
+ // format: %H: commit hash, %s: subject, %an: author name, %ai: author date
9307
9307
  // Use null byte (%x00) as delimiter - cannot appear in commit data
9308
9308
  const commit = await simpleGit().show([
9309
9309
  hash,
9310
9310
  '--no-patch',
9311
- '--format=%H%x00%s%x00%an%x00%ae%x00%ai'
9311
+ '--format=%H%x00%s%x00%an%x00%ai'
9312
9312
  ]);
9313
- const [resolvedHash, message, author_name, author_email, date] = commit
9314
- .trim()
9315
- .split('\0');
9313
+ const [resolvedHash, message, author_name, date] = commit.trim().split('\0');
9316
9314
  if (!resolvedHash) {
9317
9315
  throw new Error(`No commit found for ${hash}`);
9318
9316
  }
9319
9317
  return {
9320
9318
  hash: resolvedHash,
9321
9319
  message: message,
9322
- author: author_name || 'Unknown',
9323
- email: author_email || '',
9320
+ author: author_name || 'Unknown Author',
9324
9321
  date: date ? new Date(date).toISOString() : new Date().toISOString()
9325
9322
  };
9326
9323
  }