setup_bare_git_dir(): help static analysis