Skip to content

Commit

Permalink
Merge pull request #191 from k7efactory/li-git-repo-status
Browse files Browse the repository at this point in the history
Make git repo status check language independent
  • Loading branch information
junedomingo authored Jan 28, 2023
2 parents 37d61f1 + 811ee26 commit 3ad45d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ export const validateGitRepo = () => {

export const checkGitRepoStatus = () => {
shell.cd(APP_PATH);
const output = shell.exec('git status', { silent: true }).stdout;
const isClean = output.includes('nothing to commit, working tree clean');
const output = shell.exec('git status --porcelain', { silent: true }).stdout;
const isClean = output === '';

if (!isClean) {
console.log(
Expand Down

0 comments on commit 3ad45d0

Please sign in to comment.