X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=blobdiff_plain;f=bin%2Faxzshctl;fp=bin%2Faxzshctl;h=b958950d2ad313863d668271d6b9d9e12a823254;hp=c8aaf7da3e03cb62ad31223a8c81da759e80d35e;hb=efc2041dcd7bea50ee6dff95c603a929e5c64684;hpb=e4570c9ebe26992cea2b8521928d5956d6f08e63 diff --git a/bin/axzshctl b/bin/axzshctl index c8aaf7d..b958950 100755 --- a/bin/axzshctl +++ b/bin/axzshctl @@ -296,7 +296,12 @@ function UpgradeAXZSH { fi ax_msg - "Upgrading AX-ZSH in \"$AXZSH\" using git(1) ..." - ( cd "$AXZSH" && git pull --ff-only ) + ( + set -e + cd "$AXZSH" + git pull --ff-only || ax_error "Git pull failed!" + git log --pretty=format:"%C(yellow)%h %C(blue)%ar %C(green)%an %Creset%s" ORIG_HEAD.. + ) } function UpgradeForeignPlugins { @@ -310,8 +315,10 @@ function UpgradeForeignPlugins { if [[ -d "$dir/.git" ]]; then ax_msg - "Upgrading \"$name\" [git] ..." ( + set -e cd "$dir" - git pull --ff-only || ax_error "Pull failed!" + git pull --ff-only || ax_error "Git pull failed!" + git log --pretty=format:"%C(yellow)%h %C(blue)%ar %C(green)%an %Creset%s" ORIG_HEAD.. ) else ax_error "Unknown repository type!"