Skip to content

Commit

Permalink
feat: don’t --continue on dirty index or work tree
Browse files Browse the repository at this point in the history
  • Loading branch information
hraban committed Jun 22, 2022
1 parent 26178a3 commit b1be999
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Readme.org
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,10 @@ elif [[ ! -d "$MONOREPO_NAME" ]]; then
exit 1
else
cd "$MONOREPO_NAME"
if git status --porcelain | grep . ; then
>&2 echo "Git status shows pending changes in the repo. Cannot --continue."
exit 1
fi
# There isn’t anything special about --continue, really.
fi
#+END_SRC
Expand Down
4 changes: 4 additions & 0 deletions tomono
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ elif [[ ! -d "$MONOREPO_NAME" ]]; then
exit 1
else
cd "$MONOREPO_NAME"
if git status --porcelain | grep . ; then
>&2 echo "Git status shows pending changes in the repo. Cannot --continue."
exit 1
fi
# There isn’t anything special about --continue, really.
fi

Expand Down

0 comments on commit b1be999

Please sign in to comment.