Skip to content

Commit

Permalink
fix: check for all possible local changes, not just new files
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Oct 23, 2019
1 parent 72ea639 commit 8020be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ async function main() {
async function getLocalChanges(path) {
const output = await runShellCommand(`git status ${path || "*"}`);

if (/Your branch is up to date/.test(output)) {
if (/nothing to commit, working tree clean/i.test(output)) {
return {};
}

Expand Down

0 comments on commit 8020be5

Please sign in to comment.