Skip to content

Commit

Permalink
fix: ignore untracked files in update script
Browse files Browse the repository at this point in the history
  • Loading branch information
6pac committed Oct 7, 2022
1 parent 017bc7f commit f213d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/git-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async function gitPushToCurrentBranch(remote = 'origin', { cwd, dryRun }) {
* @param {{ cwd: String, dryRun: Boolean; skipChecks: Boolean; }} options
*/
async function hasUncommittedChanges({ cwd, dryRun, skipChecks }) {
const execArgs = ['status', '--porcelain'];
const execArgs = ['status', '--porcelain', '-uno'];
const { stdout } = await childProcess.exec('git', execArgs, { cwd });
if (stdout.length && !skipChecks) {
throw Error('Working tree has uncommitted changes, please commit or remove the following changes before continuing.');
Expand Down

0 comments on commit f213d8b

Please sign in to comment.