Skip to content

Commit

Permalink
fix(git.clean): use 'git diff -quiet' instead
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Jun 25, 2019
1 parent 92e56c0 commit 56f612d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ async function getOwnerAndRepo() {

async function isClean() {
try {
const {stdout, stderr} = await exec('git status --porcelain');
return !stdout;
const {exitCode} = await exec('git diff --quiet');
return exitCode !== 0;
} catch (e) {
return false;
}
Expand Down

0 comments on commit 56f612d

Please sign in to comment.