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

12 lines
279 B
JavaScript

import { execAsync } from '../../misc/exec.mjs';
import 'pathe';
import 'child_process';
async function getGitRepoHash(options) {
const result = await execAsync("git rev-parse HEAD", {
cwd: options.target
});
return result.stdout.trim();
}
export { getGitRepoHash };