setup_git_directory(): add an owner check for the top-level directory