Fix warnings when not having a .git, send them to /dev/null