Re: [PATCH v3] nmbug: Add an 'init' command
authorW. Trevor King <wking@tremily.us>
Sat, 29 Nov 2014 20:18:29 +0000 (12:18 +1600)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:46:53 +0000 (14:46 -0700)
a3/56110b3fd01b32ed98935bc21aa652535cee40 [new file with mode: 0644]

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