Solved poudriere ports and git

poudriere ports -c and port updates were working flawless for many years until git happened. I assume many migration parts are still in progress.

Unfortunately cannot make it work:

Code:
#poudriere ports -c -m git -U https://git.freebsd.org/ports.git
[00:00:00] Creating default fs at /usr/local/poudriere/ports/default... done
[00:00:01] Cloning the ports tree...fatal: unable to connect to git.freebsd.org:
git.freebsd.org[0: 2604:1380:2000:9501::XXX:X]: errno=Connection refused
git.freebsd.org[1: 139.178.72.XXX]: errno=Connection refused
[00:00:01] Error:  fail
[00:00:01] Error while creating ports tree, cleaning up.

#poudriere ports -c -m git
[00:00:00] Creating default fs at /usr/local/poudriere/ports/default... done
[00:00:01] Cloning the ports tree...warning: Could not find remote branch master to clone.
fatal: Remote branch master not found in upstream origin
[00:00:02] Error:  fail
[00:00:02] Error while creating ports tree, cleaning up.

I did try with -B head/master but just getting the same error. Default ports tree tries to get svn copy that is now old. Anyone had similar problem or have idea how to make it work this days?

Code:
#poudriere version
3.3.6
# uname -a
FreeBSD 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr  9 04:24:09 UTC 2021     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
 
The primary branch is now called "main". Try with -B main. There are several threads on this, but perhaps the most succinct explanation of how to do this is here:
 
poudriere ports -c -U https://git.freebsd.org/ports.git -B main -m git+https
 
Back
Top