config: complain about --local outside of a git repo