Skip to content

Commit

Permalink
fail when aborts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Feb 4, 2021
1 parent 800910c commit d3cdea7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/assert-changed-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ if [ "$IS_CI" = true ]; then
if [ $? -ne 0 ]; then
echo "Branch has conflicts with master, rolling back test."
git merge --abort

if [ $? -ne 0]; then
# seems like we can't abort merge - script doesn't really handle that, we should fail this step because something is wonky
echo "Something went wrong, we could not abort our merge command. Please re-run the test."
exit 1
fi
fi

git config --local --unset user.name
Expand Down

0 comments on commit d3cdea7

Please sign in to comment.