Can't init prefix
Summary
Installed latest portmod via pip3 from gitlab : pip3 install git+https://gitlab.com/portmod/portmod After installing portmod, try to create new prefix with "init" sub-command and openmw arch, gives "Reference at 'refs/heads/master' does not exist" error. Using openSUSE Tumbleweed linux, python version = 3.11.4.
Steps to Reproduce
Install portmod via pip3 install git+https://gitlab.com/portmod/portmod Execute: portmod init openmw openmw
Current Behaviour
Output
portmod init openmw openmw
Before a prefix can be used, it needs package repositories, and a configuration profile
Portmod's only hardcoded package repository, the meta repository, serves primarily
to introduce other repositories, so you will need to select repositories from those
which match your architecture.
For many architectures, there is only one such repository, in which case it will be selected automatically
A profile provides a set of configuration options for a prefix
Profiles are provided by repositories, so the available profiles may depend on the repositories you choose
Available Repositories
[0] openmw: The OpenMW Mod Package Repository (stable https://gitlab.com/portmod/openmw-mods.git) *
The only repository available for arch openmw is openmw. Adding…
portmod openmw select repo add openmw
portmod sync openmw
Syncing repo openmw…
Traceback (most recent call last):
File "/home/bart/.local/lib/python3.11/site-packages/portmod/_cli/main.py", line 335, in main
args.func(args)
File "/home/bart/.local/lib/python3.11/site-packages/portmod/_cli/init.py", line 70, in init
sync([repos[x] for x in selected])
File "/home/bart/.local/lib/python3.11/site-packages/portmod/sync.py", line 49, in sync
current = gitrepo.head.commit
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/git/refs/symbolic.py", line 226, in _get_commit
obj = self._get_object()
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/git/refs/symbolic.py", line 219, in _get_object
return Object.new_from_sha(self.repo, hex_to_bin(self.dereference_recursive(self.repo, self.path)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/git/refs/symbolic.py", line 159, in dereference_recursive
hexsha, ref_path = cls._get_ref_info(repo, ref_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/git/refs/symbolic.py", line 210, in _get_ref_info
return cls._get_ref_info_helper(repo, ref_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/git/refs/symbolic.py", line 193, in _get_ref_info_helper
raise ValueError("Reference at %r does not exist" % ref_path)
ValueError: Reference at 'refs/heads/master' does not exist
ERROR: Reference at 'refs/heads/master' does not exist
Portmod and Prefix Information
portmod --version
Portmod 2.6.3.dev16+gc03ec39