var childProcess = require('child_process');
var commitMessage = (function() {
	var spawn = childProcess.spawnSync(<common>, <param>);
	var errorText = spawn.stderr.toString().trim();
	if (errorText) {
	  console.log('Fatal error from `git log`.  You must have one commit before deploying.');
	  throw new Error(errorText);
	}
	else {
	  return spawn.stdout.toString().trim();
	}
})();

相关文章:

  • 1970-01-01
  • 2021-07-03
  • 2021-08-18
  • 2021-07-29
  • 2021-08-29
  • 2022-12-23
  • 2021-05-01
  • 2022-12-23
猜你喜欢
  • 2021-07-14
  • 2021-12-13
  • 2021-10-31
  • 2021-12-10
  • 2022-02-01
  • 2021-08-28
  • 2022-01-15
相关资源
相似解决方案