Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5E673431FBF for ; Sat, 29 Nov 2014 12:18:40 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZLwb65ygYbm0 for ; Sat, 29 Nov 2014 12:18:32 -0800 (PST) Received: from resqmta-po-09v.sys.comcast.net (resqmta-po-09v.sys.comcast.net [96.114.154.168]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id C56A3431FAE for ; Sat, 29 Nov 2014 12:18:32 -0800 (PST) Received: from resomta-po-07v.sys.comcast.net ([96.114.154.231]) by resqmta-po-09v.sys.comcast.net with comcast id MYJW1p0034zp9eg01YJYYo; Sat, 29 Nov 2014 20:18:32 +0000 Received: from odin.tremily.us ([24.18.63.50]) by resomta-po-07v.sys.comcast.net with comcast id MYJV1p00f152l3L01YJWUn; Sat, 29 Nov 2014 20:18:32 +0000 Received: by odin.tremily.us (Postfix, from userid 1000) id A652A14A1264; Sat, 29 Nov 2014 12:18:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin; t=1417292309; bh=KpodhhlL82h0sVZsogQkNc/U8TX8zJhUoxtYR9r0/qA=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=hZK6r/Q+MjOtFoMeO5OtfCublKnJXeCyLjNG5hyg3en3B47XMaE8EGQWVc7yuL3di XHV5wUKPqnI4L2mNxXjPRQGSIpdwyO6mDuUUCtRftLO/mkb3LXoI0VG28Yh2RoTlWf oJd2QNBA5XQq1E6RDRwMzL5dQFb703/Td7eixOHQ= Date: Sat, 29 Nov 2014 12:18:29 -0800 From: "W. Trevor King" To: Michal Sojka Subject: Re: [PATCH v3] nmbug: Add an 'init' command Message-ID: <20141129201829.GI4062@odin.tremily.us> References: <113512958b3fd64902517c1c55576faef816f852.1414532174.git.wking@tremily.us> <87a93a5or2.fsf@resox.2x.cz> <20141129200917.GH4062@odin.tremily.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="l0l+eSofNeLXHSnY" Content-Disposition: inline In-Reply-To: <20141129200917.GH4062@odin.tremily.us> OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8; url=http://tremily.us/pubkey.txt User-Agent: Mutt/1.5.23 (2014-03-12) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1417292312; bh=N7Gh/Ao5H3Ro3zCSB0hOc3glUBl25jaXylqOLCUwdTo=; h=Received:Received:Received:Date:From:To:Subject:Message-ID: MIME-Version:Content-Type; b=rSbkK/SeIQ/PaJr2+mQWjoCrLYysrSCefT4JWekFQ1tlUraZMaQBDTyjd8HL6JalF 4FFk6/IYjXj97RGhTJ9KT+JhndqGDW7ETH9rijSPQDqeNC8SHWMY0ivh74xUeU8q3I DH352krCB+5PhCMSEiXbKzQiTTGI4Hb0ybzVbSdsGg4kIMvUkTJOo38HyNgyXLSgRW TC4kaRXir+BTq4N9XmQdJ2biZPvvPrkzMbe6mea8Hi1DHNqw0Nim1tk3CIhL9tMq4S TQktoaz0XI6wkmV4GYqh1E37NmEbhlMGcO8KbwlWNOwoZHTe0aegN/DPvijQ6cqEMF C0pADiXPQQsBw== Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2014 20:18:40 -0000 --l0l+eSofNeLXHSnY Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Nov 29, 2014 at 12:09:17PM -0800, W. Trevor King wrote: > On Sat, Nov 29, 2014 at 10:40:01AM +0100, Michal Sojka wrote: > > On =C3=9At, =C5=99=C3=ADj 28 2014, W. Trevor King wrote: > > > + _spawn( > > > + args=3D['git', 'init', '--separate-git-dir', NMBGIT, wor= kdir], > > > + wait=3DTrue) > > > + _git(args=3D['config', '--unset', 'core.worktree'], wait=3DT= rue) > > > + _git(args=3D['config', 'core.bare', 'true'], wait=3DTrue) > >=20 > > Why do you create a non-bare repository and then make it bare? >=20 > Bare repositories don't usually have upstream tracking branches. See > the commit message for c2001674 (nmbug: Add 'clone' and replace > FETCH_HEAD with @{upstream}, 2014-03-09) for details [1]. I can > resubmit this patch with a commit message that mentions the > explanation in c2001674 if folks want the extra clarity here. Ah, it seems that the lack of remote-tracking branches is unique to 'clone --bare'. When I compare 'init --bare' with the above (using Git 2.1.0), the only difference in the resulting repository is that the the 'init --bare' form doesn't set core.logallrefupdates, while the form above sets core.logallrefupdates to true. I'll submit v4 using 'init --bare' and an explicit core.logallrefupdates config. Cheers, Trevor --=20 This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy --l0l+eSofNeLXHSnY Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJUeioUAAoJEG8/JgBt8ol8O44P/ig2SMSU0ecNZ2xwuE6Fp4Vv pfjT5qcIx5YVK8NySY7jXPTB9Vg3rgkx/Khb8M0ZUWdSu+YJKVID1hBpL51bTe32 eCtLYwtutf8c8Nw6urJvas+noqTGCZsLQbuBAt54hBgya8waVWqqy7VVMGaonIaK abvqkuXQn2Z6050ZCfSWT5xfBYGxiEOxfpdHrwPuWUo52rws2/FkusspyjNaFX6z fT79zOw9Jd8h211JoaGYc6LueuhM4xN8AU8xdhp6SQxTRV0pZzy6SqAaknhSRAwM 0hg0dAGCBoSDQMh0jC0CB3I/8ARnVVWfNjvDWkYCLB0kHF5rp6LDUj157QRaDF5l 3o/kBYZiGm+2yvJeD/oP7cKQCoKWNocqCtrteuFNqe9j8Vgx8ivgYEh/X8WGLGQt rbFaqOICv+diNPaDsdCuvfHP1oElgOoLuvEY2xUIA2PxrQdPlpsHtvAzGEauuU+/ wOFgjahEWnFIcMII93uP9ByZjJ1y7a50rPdcO3j6bfrLomVRkrDgZYgQmRhzHBCt F8EyYQEDSV511Pd3KDxXpM4viLUw/OcK+v6kz+93CWH57cq5B00ZMNGoeYdU8HhP frMasnU/ovtavKtmSOxGCZpLcAFTm6xH2lAIqCL9qU7Qw/xfmmWBoXD50Zj9cS/7 0bI5CJSrgOKJJBjr6Ue8 =bnI1 -----END PGP SIGNATURE----- --l0l+eSofNeLXHSnY--