packfile: add repository argument to prepare_packed_git