diff --git a/global/post-tasks.d/018packages b/global/post-tasks.d/018packages index ee1889f..a48efbe 100755 --- a/global/post-tasks.d/018packages +++ b/global/post-tasks.d/018packages @@ -42,7 +42,8 @@ if [ -f $CONFIG -o $LOCALCONFIG ]; then if [ "$src" != "$(git config remote.origin.url)" ]; then git config remote.origin.url $src fi - git pull -q + # Update repo and clean out any local inconsistencies + git pull -q || (git fetch && git reset --hard) else continue fi