Re: /usr/src and /usr/ports not git directories ?

From: bob prohaska <fbsd_at_www.zefox.net>
Date: Sat, 18 Jan 2025 23:44:31 UTC
On Sat, Jan 18, 2025 at 12:31:07PM -0800, Steve Rikli wrote:
> On Sat, Jan 18, 2025 at 09:29:03AM -0800, bob prohaska wrote:
> > A fresh install of 
> > FreeBSD-15.0-CURRENT-amd64-20250102-3d0a0dda3a7d-274510-memstick.img
> > set up without much difficulty and Xorg seems to work out of the box
> > on my Lenovo t400s. Both src and ports directories were installed by
> > bsdinstall, but an attempt to run git pull in the src directory failed
> > with "not a git repository", even though .git entries are present.
> > 
> > The most visible problem is lack of a /usr/src/.git directory. Can
> > the existing src and ports directories be salvaged?
> 
> Not exactly answering the question you asked, but when I install FreeBSD
> I typicaly do not select src and ports, and instead do a git checkout
> of them afterwards.

Nor have I, in perhaps ten years. I just tried it for curiosity's
sake and was quite surprised at the failure. Perhaps the snapshot
process is the culprit, as compared to a release. 

Still, if anybody knows of a potential way to salvage the existing
src and ports I'd like to try, if only for my own edification.

Thanks for writing,

bob prohaska