MCPcopy Index your code
hub / github.com/darkreader/darkreader / ensureGitClean

Function ensureGitClean

tasks/cli.js:79–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79async function ensureGitClean() {
80 const diff = await execute('git diff');
81 if (diff) {
82 throw new Error('git source tree is not clean. Pease commit your work and try again');
83 }
84}
85
86/**
87 * Checks out a particular revision of source code and dependencies,

Callers 1

runFunction · 0.85

Calls 1

executeFunction · 0.90

Tested by

no test coverage detected