blob: 5466cbdfd92ced42206b75e0c2e7fee06c4f12e2 (
plain)
1
2
3
4
5
6
7
8
9
|
import util from "node:util";
import { exec as nodeExec } from "node:child_process";
const exec = util.promisify( nodeExec );
export default async function isCleanWorkingDir() {
const { stdout } = await exec( "git status --untracked-files=no --porcelain" );
return !stdout.trim();
}
|