mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
ae7f6139cc
Ref gh-5440
10 lines
284 B
JavaScript
10 lines
284 B
JavaScript
"use strict";
|
|
|
|
const util = require( "node:util" );
|
|
const exec = util.promisify( require( "node:child_process" ).exec );
|
|
|
|
module.exports = async function isCleanWorkingDir() {
|
|
const { stdout } = await exec( "git status --untracked-files=no --porcelain" );
|
|
return !stdout.trim();
|
|
};
|