packfile: allow install_packed_git to handle arbitrary repositories