Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Apr 2021 19:50:45 -0300
From:      Eric Turgeon <ericturgeon.bsd@gmail.com>
To:        Brooks Davis <brooks@freebsd.org>, Eric Turgeon <ericbsd@freebsd.org>,  FreeBSD <freebsd-ports@freebsd.org>
Subject:   Re: Any plan to fix ports git main history compatibility with old GitHub master?
Message-ID:  <CADRZFmqrmkMzu1f3DphAUihPzRkOW=AggM0Wwn%2BVJu2Y0uW2EA@mail.gmail.com>
In-Reply-To: <YGyVhUCc9oyzJk34@acme.spoerlein.net>
References:  <CADRZFmopGTTjjHZB_swGACUfPUR39L1ZJpgcz_TAdHTygmSgTQ@mail.gmail.com> <20210405214557.GJ71823@spindle.one-eyed-alien.net> <YGyVhUCc9oyzJk34@acme.spoerlein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks! I was able to fix that this morning and I just merged back from
main and everything is working fine.

*Eric Turgeon*


On Tue, Apr 6, 2021 at 2:08 PM Ulrich Sp=C3=B6rlein <uqs@freebsd.org> wrote=
:

> On Mon, 2021-04-05 at 21:45:57 +0000, Brooks Davis wrote:
> >On Mon, Apr 05, 2021 at 05:33:08PM -0300, Eric Turgeon wrote:
> >> Today when trying to sync the GhostBSD ports tree with the FreeBSD por=
ts
> >> tree, I found out the main branch history is not compatible with the o=
ld
> >> GitHub master.
> >>
> >> Any plan to migrate to main with hold git history as we had with
> >> freebsd-src?
> >
> >The main branch will contain a commit which is identical to the last
> >commit of the old master branch (except for the hash).  If the GhostBSD
> >repo is merged up to that point, you can then merge the matching commit
> >from main and proceed with using main as the source for future merges.
> >
> >If you have outstanding WIPs the process of updating them to the new
> history
> >should be about the same as the one for source:
> >
> https://github.com/freebsd/freebsd-doc/blob/main/documentation/content/en=
/articles/committers-guide/_index.adoc#562-migrating-from-github-fork
>
> This special commit was only provided for the `src` repo and will not be
> provided for the ports repo. It is fairly trivial to do this yourself
> and there's documentation around this here:
>
> https://github.com/freebsd/git_conv/wiki/Migrating-merge-based-project-fr=
om-legacy-git-tree
>
>
> It should roughly go like this:
> 1. add both remotes and fetch from them
> 2. merge into old master as usual (this is
> e010feae47ac7fda1354fb3b12290a5ee42ef590)
> 3. merge into main at the same instant in time, using your own tree:
>     git merge -s ours --allow-unrelated-histories
> 3cc0c0d66a065554459bd2f9b4f80cc07426464a
> 4. now merge into the new origin/main from now on and forevermore
>
> hth, please let me know if you need further help!
> Uli
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADRZFmqrmkMzu1f3DphAUihPzRkOW=AggM0Wwn%2BVJu2Y0uW2EA>