PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/@lerna/publish/lib

Просмотр файла: get-current-sha.js

"use strict";

const log = require("npmlog");
const childProcess = require("@lerna/child-process");

module.exports.getCurrentSHA = getCurrentSHA;

/**
 * Retrieve current SHA from git.
 * @param {import("@lerna/child-process").ExecOpts} opts
 */
function getCurrentSHA(opts) {
  log.silly("getCurrentSHA");

  const sha = childProcess.execSync("git", ["rev-parse", "HEAD"], opts);
  log.verbose("getCurrentSHA", sha);

  return sha;
}

Выполнить команду


Для локальной разработки. Не используйте в интернете!