Skip to content

Commit

Permalink
fix: do not throw if "Your branch is up to date"
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Oct 23, 2019
1 parent ba2dce3 commit ef6f702
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 @@ -155,7 +155,7 @@ async function getLocalChanges(path) {
const output = await runShellCommand(`git status ${path || "*"}`);

if (/Your branch is up to date/.test(output)) {
return;
return {};
}

const hasUncommitedChanges = /(Changes to be committed|Changes not staged|Untracked files)/.test(
Expand Down

0 comments on commit ef6f702

Please sign in to comment.