Skip to content

Commit 1309b93

Browse files
authored
Allow ignoring unstaged changes (firebase#3787)
1 parent f900417 commit 1309b93

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/release/cli.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ const prompt = createPromptModule();
4242
await bannerText();
4343

4444
/**
45-
* If there are unstaged changes, error
45+
* If there are unstaged changes, error.
46+
* Use --ignoreUnstaged to skip, such as if release-cli is continuing from a
47+
* checkpoint.
4648
*/
47-
if (await hasDiff()) {
49+
if (!argv.ignoreUnstaged || (await hasDiff())) {
4850
throw new Error(
4951
'You have unstaged changes, stash your changes before attempting to publish'
5052
);

0 commit comments

Comments
 (0)