Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jun 2022 01:13:37 -0500
From:      Unit Runker <unitrunker@gmail.com>
To:        freebsd-git@freebsd.org
Subject:   Re: date based checkouts in git possible?
Message-ID:  <107e26aa-77de-c195-e40b-2460f3a68164@gmail.com>
In-Reply-To: <015e19843ec9a8fb8b72313f28ca131e@bsdforge.com>
References:  <015e19843ec9a8fb8b72313f28ca131e@bsdforge.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 6/4/2022 12:12 AM, Chris wrote:

> git checkout `git rev-list -n 1 --before=<previous-date>" freebsd/main`
> which returns
> Your branch is up to date with 'freebsd/main'.
>
> What must I do? Or will I need to convert/import it into svn?

Hi Chris;

The message above makes me think the hash returned by rev-list is also 
HEAD. Do this:

git fetch && git pull

... to make sure your cloned repo is up to date.

To do work with the branch in that state, I'd create a new branch based 
on the commit hash returned by rev-list.

If you just want to build the kernel, the git-checkout command you gave 
above should result in your working copy being in a detached head state 
which is probably what you wanted.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?107e26aa-77de-c195-e40b-2460f3a68164>