Skip to content

Commit

Permalink
More readable error output in push
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Sapegin committed Feb 23, 2018
1 parent eceb67d commit ca52ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion push
Expand Up @@ -30,7 +30,7 @@ push=$(git push --set-upstream $* $remote $remote_branch 2>&1)
exit_code=$?

if [ $exit_code != 0 ]; then
echo -e "${color_error}Ouch, push failed!${color_reset} code=$exit_code, output=$push"
echo -e "${color_error}Ouch, push failed!${color_reset}\n\n$push"
exit $exit_code
elif echo $push | grep "Everything up-to-date" >/dev/null; then
echo "✌️ Git says everything is up-to-date!"
Expand Down

0 comments on commit ca52ca0

Please sign in to comment.