Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Feb 2017 08:11:12 +0000
From:      Grzegorz Junka <list1@gjunka.com>
To:        freebsd-git@freebsd.org
Subject:   Re: Reconsider switching from svn to git?
Message-ID:  <562a721d-731d-5302-a2c9-df51d0328124@gjunka.com>
In-Reply-To: <CAPyFy2BeS5uRC4KUzNizNuALj%2BY3AYuVcirKjbcD_FJn0CfQ-w@mail.gmail.com>
References:  <49da18e4-b211-c48d-5486-368cda912fc0@multiplay.co.uk> <86mvdfy3qs.fsf@desk.des.no> <CANCZdfpA-odwrpd=ya2NmjesDxZr1rcUhv%2BnaVWicpq7U_KT2w@mail.gmail.com> <CAPyFy2CKdHW_KkOOQozPW04jBDz8ZaNWSJLqFWAdzKcaDfSzcA@mail.gmail.com> <CANCZdfqxydVvcJMqLPfbok9gOjdWjOGrAzN0_mrc-3r7j60ipA@mail.gmail.com> <CAPyFy2BeS5uRC4KUzNizNuALj%2BY3AYuVcirKjbcD_FJn0CfQ-w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 22/02/2017 00:46, Ed Maste wrote:
> On 21 February 2017 at 18:47, Warner Losh <imp@bsdimp.com> wrote:
>> For small commits, I agree. For longer lived project branches,
>> however, there can be issues. Specifically, in svn, when you delete a
>> branch, it just marks it as empty, but you can get back to it at any
>> point in the branch. In git, however, deleting a branch deletes the
>> meta-data needed to get back to the branch (as does rebasing). We'd
>> need some way to administratively prohibit this, perhaps, for the
>> source of truth repo. I have no clue if this is possible with git,
>> just putting it out there.
> Ok, we could easily disallow any destructive activity on a
> source-of-truth git repo, including force (non-fast-forward) pushes
> and branch deletion.

This could be also easily solved by having a backup server with 
restricted access. The main server could be a remote for that backup 
server. Then the backup server wold periodically pull all changes (git 
fetch main_server). This would backup all branches ever pushed to the 
remote server.

Grzegorz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?562a721d-731d-5302-a2c9-df51d0328124>