eselect-repository icon indicating copy to clipboard operation
eselect-repository copied to clipboard

How to set git branch in config file or with "eselect repository add" ?

Open jospezial opened this issue 4 years ago • 2 comments

I want to use https://github.com/a17r/gentoo/tree/sddm-glep81 but how to set the branch to another than the default branch in /etc/portage/repos.conf/eselect-repo.conf or with "eselect repository add" ?

jospezial avatar Feb 18 '21 18:02 jospezial

The only thing I learned is to use it with the .git extension (gentoo.git). I tried with #sddm-glep81 but it did not work.

Syncing repository 'a17r' into '/var/db/repos/a17r'... /usr/bin/git clone --depth 1 https://github.com/a17r/gentoo.git#sddm-glep81 . Cloning into '.'... fatal: unable to update url base from redirection: asked for: https://github.com/a17r/gentoo.git#sddm-glep81/info/refs?service=git-upload-pack redirect: https://github.com/a17r/gentoo !!! git clone error in /var/db/repos/a17r

jospezial avatar Feb 18 '21 19:02 jospezial

Unless things changed since I last checked, repos.conf does not support switching branches.

mgorny avatar Feb 19 '21 00:02 mgorny