fix: resume campaign progress safely
This commit is contained in:
@@ -46,17 +46,17 @@ function makeQaVersion() {
|
||||
}
|
||||
|
||||
function assertNoTrackedChanges() {
|
||||
const result = spawnSync('git', ['status', '--porcelain', '--untracked-files=no'], {
|
||||
const result = spawnSync('git', ['status', '--porcelain', '--untracked-files=all'], {
|
||||
cwd: process.cwd(),
|
||||
encoding: 'utf8'
|
||||
});
|
||||
if (result.status !== 0) {
|
||||
throw new Error(`Could not inspect tracked git status before shipping:\n${result.stderr.trim()}`);
|
||||
throw new Error(`Could not inspect git status before shipping:\n${result.stderr.trim()}`);
|
||||
}
|
||||
|
||||
const dirty = result.stdout.trim();
|
||||
if (dirty) {
|
||||
throw new Error(`Refusing to ship release with uncommitted tracked changes:\n${dirty}`);
|
||||
throw new Error(`Refusing to ship release with uncommitted or untracked files:\n${dirty}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user