From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Multiple checkout copies Date: Tue, 03 Feb 2015 14:57:11 +0100 Message-ID: <87bnlb2j48.fsf@fencepost.gnu.org> References: <54CE9E10.5000709@cs.ucla.edu> <87sieogqgf.fsf@violet.siamics.net> <87386ncnz3.fsf@Rainer.invalid> <87oapb2t2e.fsf@fencepost.gnu.org> <87y4ofb1gt.fsf@Rainer.invalid> <87fvan2l29.fsf@fencepost.gnu.org> <87fvanglpz.fsf@violet.siamics.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1422971861 28167 80.91.229.3 (3 Feb 2015 13:57:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2015 13:57:41 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 03 14:57:40 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YIdz2-0007KY-Gn for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2015 14:57:40 +0100 Original-Received: from localhost ([::1]:59653 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIdz1-0001MX-U2 for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2015 08:57:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIdyj-0001MO-J8 for emacs-devel@gnu.org; Tue, 03 Feb 2015 08:57:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIdyi-0000TI-BW for emacs-devel@gnu.org; Tue, 03 Feb 2015 08:57:21 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIdyi-0000Su-99 for emacs-devel@gnu.org; Tue, 03 Feb 2015 08:57:20 -0500 Original-Received: from localhost ([127.0.0.1]:53798 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIdyh-0003K8-Oh for emacs-devel@gnu.org; Tue, 03 Feb 2015 08:57:19 -0500 Original-Received: by lola (Postfix, from userid 1000) id 23EFEE04E9; Tue, 3 Feb 2015 14:57:11 +0100 (CET) In-Reply-To: <87fvanglpz.fsf@violet.siamics.net> (Ivan Shmakov's message of "Tue, 03 Feb 2015 13:37:12 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182328 Archived-At: Ivan Shmakov writes: >>>>>> David Kastrup writes: >>>>>> Achim Gratz writes: > > [=E2=80=A6] > > >> In any case, as long as the repo cloned via "--shared" is a bare > >> repository that was cloned from upstream Emacs and you do not clone > >> the second generation again in this manner, "--shared" is still > >> safe. > > > No, it isn't. You can have both local branches and remote branches > > removed from the cloned bare repo while your --shared clone still > > uses objects that are no longer retained in the first clone. > > =E2=80=9CCan=E2=80=9D in the sense that you /can/ use Git to shoot yours= elf in > the foot, or are there cases where git-fetch(1) would indeed > autoremove any branch references from a bare repository? If you want to mirror the upstream, you'll use "git fetch -p" in order to have branches that are removed upstream to get deleted in the mirror as well. Even without -p, references in frequently rewritten work branches (like Git's pu or next branches) will disappear eventually. > >> It can still be a net win for throw-away clones needed during a > >> build. > > > Basically the only sensible use is for temporary clones used (and > > deleted again) within a script. > > I use a separate filesystem for local mirrors, including those > of upstream Git repositories. Thus, --shared is pretty much the > only space-saving option. > > Works for me that way since c. 2008. "Works for me" is subject to "until it doesn't". Which is the whole point about warning about potentially dangerous operations. --=20 David Kastrup