diff --git a/tasks/hpublish b/tasks/hpublish index fdf7f5cd6..eb645add8 100755 --- a/tasks/hpublish +++ b/tasks/hpublish @@ -2,7 +2,10 @@ if [[ $HOST = "YiMac.local" ]]; then cd $HOME/Sites/webroot - git pull + git co master + [[ ! $? ]] && { exit 1 } + git pull + [[ ! $? ]] && { exit 1 } ./tasks/recompile if git status | grep 'nothing to commit'>/dev/null 2>&1; then else