IOweb/node_modules/@iconify/tools/lib/download/git/hash.cjs
2026-07-03 15:07:38 -05:00

14 lines
323 B
JavaScript

'use strict';
const misc_exec = require('../../misc/exec.cjs');
require('pathe');
require('child_process');
async function getGitRepoHash(options) {
const result = await misc_exec.execAsync("git rev-parse HEAD", {
cwd: options.target
});
return result.stdout.trim();
}
exports.getGitRepoHash = getGitRepoHash;