Re: git-clone(1) after base 3e8619e535b6 for /usr/ports subdirectories

Warner Losh <[email protected]>
Newsgroups gmane.os.freebsd.current
Message-ID <CANCZdfpUJVyc1RDpxcS4bd8t6AYfwkmv8JKerG-SxF9d7gRt8w@mail.gmail.com>
That only works if don't already have a ports tree. What's there?

Warner

On Sat, Feb 7, 2026, 8:09 PM Graham Perrin <[email protected]> wrote:

> With recent installations of FreeBSD-CURRENT, traditional use of git no
> longer works for /usr/ports.
>
> ----
>
> root@sixteen:~ # git clone --depth 1 https://git.freebsd.org/ports.git
> /usr/ports
>
> fatal: destination path '/usr/ports' already exists and is not an empty
> directory.
> root@sixteen:~ # freebsd-version -kru ; uname -mvKU
>
> 16.0-CURRENT
> 16.0-CURRENT
> 16.0-CURRENT
> FreeBSD 16.0-CURRENT #0 main-n283549-6d37c3db62ba: Mon Feb  2 12:11:20
> UTC 2026
>   [email protected]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
> amd64 1600011 1600011
> root@sixteen:~
>
> ----
>
> <https://freebsdfoundation.org/enhance-your-git-experience/> (bcr)
>
> <https://docs.freebsd.org/en/books/handbook/ports/#ports-using-git-method>
>
> <
> https://github.com/freebsd/freebsd-src/commit/3e8619e535b61c99f0dc50cc6c7e237eb82a8be7>
>
> |
> <
> https://cgit.FreeBSD.org/src/commit/?id=3e8619e535b61c99f0dc50cc6c7e237eb82a8be7
> >
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.